Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import static java.util.stream.Collectors.toSet;

@Slf4j
@Deprecated(forRemoval = true)
public abstract class AbstractOperationDataScanner implements ChannelsScanner {

protected abstract SchemasService getSchemaService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

@Slf4j
@RequiredArgsConstructor
@Deprecated(forRemoval = true)
public class ConsumerOperationDataScanner extends AbstractOperationDataScanner {

private final AsyncApiDocketService asyncApiDocketService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

@Slf4j
@RequiredArgsConstructor
@Deprecated(forRemoval = true)
public class ProducerOperationDataScanner extends AbstractOperationDataScanner {

private final AsyncApiDocketService asyncApiDocketService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ public class AsyncApiDocket {
* Provides information about the producers.
*/
@Singular
@Deprecated(forRemoval = true)
private final List<ProducerData> producers;

@Singular
@Deprecated(forRemoval = true)
private final List<ConsumerData> consumers;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public AsyncApiDocket getAsyncApiDocket() {
private void createDocket() {
if (customDocket.isPresent()) {
log.debug("Reading springwolf configuration from custom defined @Bean AsyncApiDocket");
log.warn("The usage of the @Bean AsyncApiDocket is deprecated and scheduled to be deleted. "
+ "Use the spring properties file instead. "
+ "More details: https://www.springwolf.dev/docs/quickstart");
docket = customDocket.get();
} else {
log.debug("Reading springwolf configuration from application.properties files");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public static class ConsumerData {
/**
* This mirrors the ConfigConstant {@see SpringwolfConfigConstants#SPRINGWOLF_SCANNER_PRODUCER_DATA_ENABLED}
*/
@Deprecated(forRemoval = true)
private boolean enabled = true;
}

Expand All @@ -188,6 +189,7 @@ public static class ProducerData {
/**
* This mirrors the ConfigConstant {@see SpringwolfConfigConstants#SPRINGWOLF_SCANNER_RABBIT_LISTENER_ENABLED}
*/
@Deprecated(forRemoval = true)
private boolean enabled = true;
}
}
Expand All @@ -204,7 +206,7 @@ public static class Endpoint {
private static class Actuator {

/**
* Flag to move the endpoint that exposes the AsyncAPI document beneath Spring Boots actuator endpoint.
* Flag to move the endpoint that exposes the AsyncAPI document beneath Spring Boot's actuator endpoint.
*/
private boolean enabled = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.util.Collections;
import java.util.Map;

@Deprecated(forRemoval = true)
public class AmqpConsumerData extends ConsumerData {

@Builder(builderMethodName = "amqpConsumerDataBuilder")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.util.Collections;
import java.util.Map;

@Deprecated(forRemoval = true)
public class AmqpProducerData extends ProducerData {

@Builder(builderMethodName = "amqpProducerDataBuilder")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import java.util.Map;

@Deprecated(forRemoval = true)
public class KafkaConsumerData extends ConsumerData {
@Builder(builderMethodName = "kafkaConsumerDataBuilder")
public KafkaConsumerData(String topicName, Class<?> payloadType, String description, AsyncHeaders headers) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import java.util.Map;

@Deprecated(forRemoval = true)
public class KafkaProducerData extends ProducerData {

@Builder(builderMethodName = "kafkaProducerDataBuilder")
Expand Down