Skip to content

Commit

Permalink
Refactor @metadata#required to a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 11, 2019
1 parent 7886540 commit a9565d4
Show file tree
Hide file tree
Showing 250 changed files with 405 additions and 409 deletions.
Expand Up @@ -42,7 +42,7 @@
consumerClass = ${name}Consumer.class, label = "custom") consumerClass = ${name}Consumer.class, label = "custom")
public class ${name}Endpoint extends AbstractApiEndpoint<${name}ApiName, ${name}Configuration> { public class ${name}Endpoint extends AbstractApiEndpoint<${name}ApiName, ${name}Configuration> {
@UriPath @Metadata(required = "true") @UriPath @Metadata(required = true)
private String name; private String name;
// TODO create and manage API proxy // TODO create and manage API proxy
Expand Down
Expand Up @@ -31,7 +31,7 @@
@UriEndpoint(firstVersion = "${version}", scheme = "${scheme}", title = "${name}", syntax="${scheme}:name", @UriEndpoint(firstVersion = "${version}", scheme = "${scheme}", title = "${name}", syntax="${scheme}:name",
consumerClass = ${name}Consumer.class, label = "custom") consumerClass = ${name}Consumer.class, label = "custom")
public class ${name}Endpoint extends DefaultEndpoint { public class ${name}Endpoint extends DefaultEndpoint {
@UriPath @Metadata(required = "true") @UriPath @Metadata(required = true)
private String name; private String name;
@UriParam(defaultValue = "10") @UriParam(defaultValue = "10")
private int option = 10; private int option = 10;
Expand Down
Expand Up @@ -50,7 +50,7 @@ public abstract class ResourceEndpoint extends ProcessorEndpoint implements Mana
+ " ref will lookup the resource in the registry." + " ref will lookup the resource in the registry."
+ " bean will call a method on a bean to be used as the resource." + " bean will call a method on a bean to be used as the resource."
+ " For bean you can specify the method name after dot, eg bean:myBean.myMethod.") + " For bean you can specify the method name after dot, eg bean:myBean.myMethod.")
@Metadata(required = "true") @Metadata(required = true)
private String resourceUri; private String resourceUri;
@UriParam(defaultValue = "false", description = "Sets whether to use resource content cache or not") @UriParam(defaultValue = "false", description = "Sets whether to use resource content cache or not")
private boolean contentCache; private boolean contentCache;
Expand Down
Expand Up @@ -36,7 +36,7 @@
public class BeanEndpoint extends DefaultEndpoint { public class BeanEndpoint extends DefaultEndpoint {
private transient BeanHolder beanHolder; private transient BeanHolder beanHolder;
private transient BeanProcessor processor; private transient BeanProcessor processor;
@UriPath(description = "Sets the name of the bean to invoke") @Metadata(required = "true") @UriPath(description = "Sets the name of the bean to invoke") @Metadata(required = true)
private String beanName; private String beanName;
@UriParam(description = "Sets the name of the method to invoke on the bean") @UriParam(description = "Sets the name of the method to invoke on the bean")
private String method; private String method;
Expand Down
Expand Up @@ -42,7 +42,7 @@
@UriEndpoint(firstVersion = "1.3.0", scheme = "browse", title = "Browse", syntax = "browse:name", label = "core,monitoring") @UriEndpoint(firstVersion = "1.3.0", scheme = "browse", title = "Browse", syntax = "browse:name", label = "core,monitoring")
public class BrowseEndpoint extends DefaultEndpoint implements BrowsableEndpoint { public class BrowseEndpoint extends DefaultEndpoint implements BrowsableEndpoint {


@UriPath(description = "A name which can be any string to uniquely identify the endpoint") @Metadata(required = "true") @UriPath(description = "A name which can be any string to uniquely identify the endpoint") @Metadata(required = true)
private String name; private String name;


private List<Exchange> exchanges; private List<Exchange> exchanges;
Expand Down
Expand Up @@ -38,7 +38,7 @@
@UriEndpoint(firstVersion = "2.11.0", scheme = "controlbus", title = "Control Bus", syntax = "controlbus:command:language", producerOnly = true, label = "core,monitoring") @UriEndpoint(firstVersion = "2.11.0", scheme = "controlbus", title = "Control Bus", syntax = "controlbus:command:language", producerOnly = true, label = "core,monitoring")
public class ControlBusEndpoint extends DefaultEndpoint { public class ControlBusEndpoint extends DefaultEndpoint {


@UriPath(description = "Command can be either route or language", enums = "route,language") @Metadata(required = "true") @UriPath(description = "Command can be either route or language", enums = "route,language") @Metadata(required = true)
private String command; private String command;
@UriPath(enums = "bean,constant,el,exchangeProperty,file,groovy,header,jsonpath,mvel,ognl,ref,simple,spel,sql,terser,tokenize,xpath,xquery,xtokenize") @UriPath(enums = "bean,constant,el,exchangeProperty,file,groovy,header,jsonpath,mvel,ognl,ref,simple,spel,sql,terser,tokenize,xpath,xquery,xtokenize")
private Language language; private Language language;
Expand Down
Expand Up @@ -43,9 +43,9 @@ public class DataFormatEndpoint extends DefaultEndpoint {
private AsyncProcessor processor; private AsyncProcessor processor;
private DataFormat dataFormat; private DataFormat dataFormat;


@UriPath(description = "Name of data format") @Metadata(required = "true") @UriPath(description = "Name of data format") @Metadata(required = true)
private String name; private String name;
@UriPath(enums = "marshal,unmarshal") @Metadata(required = "true") @UriPath(enums = "marshal,unmarshal") @Metadata(required = true)
private String operation; private String operation;


public DataFormatEndpoint() { public DataFormatEndpoint() {
Expand Down
Expand Up @@ -49,7 +49,7 @@
public class DataSetEndpoint extends MockEndpoint implements Service { public class DataSetEndpoint extends MockEndpoint implements Service {
private final transient Logger log; private final transient Logger log;
private final AtomicInteger receivedCounter = new AtomicInteger(); private final AtomicInteger receivedCounter = new AtomicInteger();
@UriPath(name = "name", description = "Name of DataSet to lookup in the registry") @Metadata(required = "true") @UriPath(name = "name", description = "Name of DataSet to lookup in the registry") @Metadata(required = true)
private volatile DataSet dataSet; private volatile DataSet dataSet;
@UriParam(label = "consumer", defaultValue = "0") @UriParam(label = "consumer", defaultValue = "0")
private int minRate; private int minRate;
Expand Down
Expand Up @@ -44,7 +44,7 @@ public class DirectEndpoint extends DefaultEndpoint {
private final Map<String, DirectConsumer> consumers; private final Map<String, DirectConsumer> consumers;
private final List<DirectProducer> producers = new ArrayList<>(); private final List<DirectProducer> producers = new ArrayList<>();


@UriPath(description = "Name of direct endpoint") @Metadata(required = "true") @UriPath(description = "Name of direct endpoint") @Metadata(required = true)
private String name; private String name;


@UriParam(label = "producer", defaultValue = "true") @UriParam(label = "producer", defaultValue = "true")
Expand Down
Expand Up @@ -36,7 +36,7 @@
@UriEndpoint(firstVersion = "2.10.0", scheme = "direct-vm", title = "Direct VM", syntax = "direct-vm:name", consumerClass = DirectConsumer.class, label = "core,endpoint") @UriEndpoint(firstVersion = "2.10.0", scheme = "direct-vm", title = "Direct VM", syntax = "direct-vm:name", consumerClass = DirectConsumer.class, label = "core,endpoint")
public class DirectVmEndpoint extends DefaultEndpoint implements AsyncEndpoint { public class DirectVmEndpoint extends DefaultEndpoint implements AsyncEndpoint {


@UriPath(description = "Name of direct-vm endpoint") @Metadata(required = "true") @UriPath(description = "Name of direct-vm endpoint") @Metadata(required = true)
private String name; private String name;


@UriParam(label = "producer", defaultValue = "true") @UriParam(label = "producer", defaultValue = "true")
Expand Down
Expand Up @@ -50,7 +50,7 @@ public class FileEndpoint extends GenericFileEndpoint<File> {


private final FileOperations operations = new FileOperations(this); private final FileOperations operations = new FileOperations(this);


@UriPath(name = "directoryName") @Metadata(required = "true") @UriPath(name = "directoryName") @Metadata(required = true)
private File file; private File file;
@UriParam(label = "advanced", defaultValue = "true") @UriParam(label = "advanced", defaultValue = "true")
private boolean copyAndDeleteOnRenameFail = true; private boolean copyAndDeleteOnRenameFail = true;
Expand Down
Expand Up @@ -55,11 +55,11 @@ public class LanguageEndpoint extends ResourceEndpoint {
private boolean contentResolvedFromResource; private boolean contentResolvedFromResource;
@UriPath(enums = "bean,constant,exchangeProperty,file,groovy,header,javascript,jsonpath,mvel,ognl," @UriPath(enums = "bean,constant,exchangeProperty,file,groovy,header,javascript,jsonpath,mvel,ognl,"
+ ",ref,simple,spel,sql,terser,tokenize,xpath,xquery,xtokenize") + ",ref,simple,spel,sql,terser,tokenize,xpath,xquery,xtokenize")
@Metadata(required = "true") @Metadata(required = true)
private String languageName; private String languageName;
// resourceUri is optional in the language endpoint // resourceUri is optional in the language endpoint
@UriPath(description = "Path to the resource, or a reference to lookup a bean in the Registry to use as the resource") @UriPath(description = "Path to the resource, or a reference to lookup a bean in the Registry to use as the resource")
@Metadata(required = "false") @Metadata(required = false)
private String resourceUri; private String resourceUri;
@UriParam @UriParam
private String script; private String script;
Expand Down
Expand Up @@ -48,7 +48,7 @@ public class LogEndpoint extends ProcessorEndpoint {
private Logger providedLogger; private Logger providedLogger;
private ExchangeFormatter localFormatter; private ExchangeFormatter localFormatter;


@UriPath(description = "Name of the logging category to use") @Metadata(required = "true") @UriPath(description = "Name of the logging category to use") @Metadata(required = true)
private String loggerName; private String loggerName;
@UriParam(defaultValue = "INFO", enums = "ERROR,WARN,INFO,DEBUG,TRACE,OFF") @UriParam(defaultValue = "INFO", enums = "ERROR,WARN,INFO,DEBUG,TRACE,OFF")
private String level; private String level;
Expand Down
Expand Up @@ -112,7 +112,7 @@ public class MockEndpoint extends DefaultEndpoint implements BrowsableEndpoint {


private volatile int counter; private volatile int counter;


@UriPath(description = "Name of mock endpoint") @Metadata(required = "true") @UriPath(description = "Name of mock endpoint") @Metadata(required = true)
private String name; private String name;
@UriParam(label = "producer", defaultValue = "-1") @UriParam(label = "producer", defaultValue = "-1")
private int expectedCount; private int expectedCount;
Expand Down
Expand Up @@ -37,7 +37,7 @@ public class PropertiesEndpoint extends DefaultEndpoint implements DelegateEndpo
private volatile Endpoint endpoint; private volatile Endpoint endpoint;


@UriPath @UriPath
@Metadata(required = "true") @Metadata(required = true)
private String key; private String key;
@UriParam @UriParam
private String locations; private String locations;
Expand Down
Expand Up @@ -36,7 +36,7 @@ public class RefEndpoint extends DefaultEndpoint implements DelegateEndpoint {


private volatile Endpoint endpoint; private volatile Endpoint endpoint;


@UriPath @Metadata(required = "true") @UriPath @Metadata(required = true)
private String name; private String name;


public RefEndpoint(String endpointUri, Component component) { public RefEndpoint(String endpointUri, Component component) {
Expand Down
Expand Up @@ -49,7 +49,7 @@ public class RestApiEndpoint extends DefaultEndpoint {
public static final String RESOURCE_PATH = "META-INF/services/org/apache/camel/restapi/"; public static final String RESOURCE_PATH = "META-INF/services/org/apache/camel/restapi/";


@UriPath @UriPath
@Metadata(required = "true") @Metadata(required = true)
private String path; private String path;
@UriPath @UriPath
private String contextIdPattern; private String contextIdPattern;
Expand Down
Expand Up @@ -52,9 +52,9 @@ public class RestEndpoint extends DefaultEndpoint {
public static final String DEFAULT_API_COMPONENT_NAME = "swagger"; public static final String DEFAULT_API_COMPONENT_NAME = "swagger";
public static final String RESOURCE_PATH = "META-INF/services/org/apache/camel/rest/"; public static final String RESOURCE_PATH = "META-INF/services/org/apache/camel/rest/";


@UriPath(label = "common", enums = "get,post,put,delete,patch,head,trace,connect,options") @Metadata(required = "true") @UriPath(label = "common", enums = "get,post,put,delete,patch,head,trace,connect,options") @Metadata(required = true)
private String method; private String method;
@UriPath(label = "common") @Metadata(required = "true") @UriPath(label = "common") @Metadata(required = true)
private String path; private String path;
@UriPath(label = "common") @UriPath(label = "common")
private String uriTemplate; private String uriTemplate;
Expand Down
Expand Up @@ -37,7 +37,7 @@ public enum SagaEndpointAction {
} }


@UriPath(description = "Action to execute (complete or compensate)") @UriPath(description = "Action to execute (complete or compensate)")
@Metadata(required = "true") @Metadata(required = true)
private final SagaEndpointAction action; private final SagaEndpointAction action;


public SagaEndpoint(String endpointUri, SagaComponent component, String action) { public SagaEndpoint(String endpointUri, SagaComponent component, String action) {
Expand Down
Expand Up @@ -37,7 +37,7 @@
consumerOnly = true, consumerClass = SchedulerConsumer.class, label = "core,scheduling") consumerOnly = true, consumerClass = SchedulerConsumer.class, label = "core,scheduling")
public class SchedulerEndpoint extends ScheduledPollEndpoint { public class SchedulerEndpoint extends ScheduledPollEndpoint {


@UriPath @Metadata(required = "true") @UriPath @Metadata(required = true)
private String name; private String name;
@UriParam(defaultValue = "1", label = "scheduler") @UriParam(defaultValue = "1", label = "scheduler")
private int concurrentTasks = 1; private int concurrentTasks = 1;
Expand Down
Expand Up @@ -60,7 +60,7 @@ public class SedaEndpoint extends DefaultEndpoint implements AsyncEndpoint, Brow
private volatile boolean multicastStarted; private volatile boolean multicastStarted;
private volatile ExecutorService multicastExecutor; private volatile ExecutorService multicastExecutor;


@UriPath(description = "Name of queue") @Metadata(required = "true") @UriPath(description = "Name of queue") @Metadata(required = true)
private String name; private String name;
@UriParam(label = "advanced", description = "Define the queue instance which will be used by the endpoint") @UriParam(label = "advanced", description = "Define the queue instance which will be used by the endpoint")
private BlockingQueue queue; private BlockingQueue queue;
Expand Down
Expand Up @@ -47,7 +47,7 @@ public class TestEndpoint extends MockEndpoint {


private Endpoint expectedMessageEndpoint; private Endpoint expectedMessageEndpoint;


@UriPath(description = "Name of endpoint to lookup in the registry to use for polling messages used for testing") @Metadata(required = "true") @UriPath(description = "Name of endpoint to lookup in the registry to use for polling messages used for testing") @Metadata(required = true)
private String name; private String name;
@UriParam @UriParam
private boolean anyOrder; private boolean anyOrder;
Expand Down
Expand Up @@ -41,7 +41,7 @@
@ManagedResource(description = "Managed TimerEndpoint") @ManagedResource(description = "Managed TimerEndpoint")
@UriEndpoint(firstVersion = "1.0.0", scheme = "timer", title = "Timer", syntax = "timer:timerName", consumerOnly = true, consumerClass = TimerConsumer.class, label = "core,scheduling") @UriEndpoint(firstVersion = "1.0.0", scheme = "timer", title = "Timer", syntax = "timer:timerName", consumerOnly = true, consumerClass = TimerConsumer.class, label = "core,scheduling")
public class TimerEndpoint extends DefaultEndpoint implements MultipleConsumersSupport { public class TimerEndpoint extends DefaultEndpoint implements MultipleConsumersSupport {
@UriPath @Metadata(required = "true") @UriPath @Metadata(required = true)
private String timerName; private String timerName;
@UriParam(defaultValue = "1000", description = "If greater than 0, generate periodic events every period milliseconds." @UriParam(defaultValue = "1000", description = "If greater than 0, generate periodic events every period milliseconds."
+ " You can also specify time values using units, such as 60s (60 seconds), 5m30s (5 minutes and 30 seconds), and 1h (1 hour).") + " You can also specify time values using units, such as 60s (60 seconds), 5m30s (5 minutes and 30 seconds), and 1h (1 hour).")
Expand Down
Expand Up @@ -47,7 +47,7 @@ public class ValidatorEndpoint extends DefaultEndpoint {


@UriPath(description = "URL to a local resource on the classpath, or a reference to lookup a bean in the Registry," @UriPath(description = "URL to a local resource on the classpath, or a reference to lookup a bean in the Registry,"
+ " or a full URL to a remote resource or resource on the file system which contains the XSD to validate against.") + " or a full URL to a remote resource or resource on the file system which contains the XSD to validate against.")
@Metadata(required = "true") @Metadata(required = true)
private String resourceUri; private String resourceUri;
@UriParam(defaultValue = XMLConstants.W3C_XML_SCHEMA_NS_URI, label = "advanced", @UriParam(defaultValue = XMLConstants.W3C_XML_SCHEMA_NS_URI, label = "advanced",
description = "Configures the W3C XML Schema Namespace URI.") description = "Configures the W3C XML Schema Namespace URI.")
Expand Down
Expand Up @@ -61,7 +61,7 @@ public class XsltEndpoint extends ProcessorEndpoint {
private volatile XsltBuilder xslt; private volatile XsltBuilder xslt;
private Map<String, Object> parameters; private Map<String, Object> parameters;


@UriPath @Metadata(required = "true") @UriPath @Metadata(required = true)
private String resourceUri; private String resourceUri;
@UriParam(defaultValue = "true") @UriParam(defaultValue = "true")
private boolean contentCache = true; private boolean contentCache = true;
Expand Down
Expand Up @@ -33,7 +33,7 @@
@XmlRootElement(name = "from") @XmlRootElement(name = "from")
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
public class FromDefinition extends OptionalIdentifiedDefinition<FromDefinition> implements EndpointRequiredDefinition { public class FromDefinition extends OptionalIdentifiedDefinition<FromDefinition> implements EndpointRequiredDefinition {
@XmlAttribute @Metadata(required = "true") @XmlAttribute @Metadata(required = true)
private String uri; private String uri;
@XmlTransient @XmlTransient
private Endpoint endpoint; private Endpoint endpoint;
Expand Down
Expand Up @@ -39,7 +39,7 @@
@XmlRootElement(name = "inputType") @XmlRootElement(name = "inputType")
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
public class InputTypeDefinition extends OptionalIdentifiedDefinition<InputTypeDefinition> { public class InputTypeDefinition extends OptionalIdentifiedDefinition<InputTypeDefinition> {
@XmlAttribute @Metadata(required = "true") @XmlAttribute @Metadata(required = true)
private String urn; private String urn;
@XmlAttribute @Metadata(defaultValue = "false") @XmlAttribute @Metadata(defaultValue = "false")
private Boolean validate = false; private Boolean validate = false;
Expand Down
Expand Up @@ -39,7 +39,7 @@
@XmlRootElement(name = "outputType") @XmlRootElement(name = "outputType")
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
public class OutputTypeDefinition extends OptionalIdentifiedDefinition<OutputTypeDefinition> { public class OutputTypeDefinition extends OptionalIdentifiedDefinition<OutputTypeDefinition> {
@XmlAttribute @Metadata(required = "true") @XmlAttribute @Metadata(required = true)
private String urn; private String urn;
@XmlAttribute @Metadata(defaultValue = "false") @XmlAttribute @Metadata(defaultValue = "false")
private Boolean validate = false; private Boolean validate = false;
Expand Down
Expand Up @@ -42,7 +42,7 @@
@XmlRootElement(name = "resequence") @XmlRootElement(name = "resequence")
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
public class ResequenceDefinition extends ProcessorDefinition<ResequenceDefinition> { public class ResequenceDefinition extends ProcessorDefinition<ResequenceDefinition> {
@Metadata(required = "false") @Metadata(required = false)
@XmlElements({ @XmlElements({
@XmlElement(name = "batch-config", type = BatchResequencerConfig.class), @XmlElement(name = "batch-config", type = BatchResequencerConfig.class),
@XmlElement(name = "stream-config", type = StreamResequencerConfig.class)} @XmlElement(name = "stream-config", type = StreamResequencerConfig.class)}
Expand All @@ -52,7 +52,7 @@ public class ResequenceDefinition extends ProcessorDefinition<ResequenceDefiniti
private BatchResequencerConfig batchConfig; private BatchResequencerConfig batchConfig;
@XmlTransient @XmlTransient
private StreamResequencerConfig streamConfig; private StreamResequencerConfig streamConfig;
@XmlElementRef @Metadata(required = "true") @XmlElementRef @Metadata(required = true)
private ExpressionDefinition expression; private ExpressionDefinition expression;
@XmlElementRef @XmlElementRef
private List<ProcessorDefinition<?>> outputs = new ArrayList<>(); private List<ProcessorDefinition<?>> outputs = new ArrayList<>();
Expand Down
Expand Up @@ -30,7 +30,7 @@
*/ */
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
public abstract class SendDefinition<Type extends ProcessorDefinition<Type>> extends NoOutputDefinition<Type> implements EndpointRequiredDefinition { public abstract class SendDefinition<Type extends ProcessorDefinition<Type>> extends NoOutputDefinition<Type> implements EndpointRequiredDefinition {
@XmlAttribute @Metadata(required = "true") @XmlAttribute @Metadata(required = true)
protected String uri; protected String uri;
@XmlTransient @XmlTransient
protected Endpoint endpoint; protected Endpoint endpoint;
Expand Down
Expand Up @@ -38,7 +38,7 @@
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
public class ToDynamicDefinition extends NoOutputDefinition<ToDynamicDefinition> { public class ToDynamicDefinition extends NoOutputDefinition<ToDynamicDefinition> {


@XmlAttribute @Metadata(required = "true") @XmlAttribute @Metadata(required = true)
private String uri; private String uri;
@XmlAttribute @XmlAttribute
private ExchangePattern pattern; private ExchangePattern pattern;
Expand Down
Expand Up @@ -41,7 +41,7 @@
@XmlRootElement(name = "serviceCall") @XmlRootElement(name = "serviceCall")
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
public class ServiceCallDefinition extends NoOutputDefinition<ServiceCallDefinition> { public class ServiceCallDefinition extends NoOutputDefinition<ServiceCallDefinition> {
@XmlAttribute @Metadata(required = "true") @XmlAttribute @Metadata(required = true)
private String name; private String name;
@XmlAttribute @XmlAttribute
private String uri; private String uri;
Expand Down
Expand Up @@ -58,7 +58,7 @@ public class ExpressionDefinition implements Expression, Predicate, OtherAttribu
@XmlAttribute @XmlAttribute
@XmlID @XmlID
private String id; private String id;
@XmlValue @Metadata(required = "true") @XmlValue @Metadata(required = true)
private String expression; private String expression;
@XmlAttribute @Metadata(defaultValue = "true") @XmlAttribute @Metadata(defaultValue = "true")
private Boolean trim; private Boolean trim;
Expand Down
Expand Up @@ -31,7 +31,7 @@
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
public class RestSecurityApiKey extends RestSecurityDefinition { public class RestSecurityApiKey extends RestSecurityDefinition {


@XmlAttribute(name = "name", required = true) @Metadata(required = "true") @XmlAttribute(name = "name", required = true) @Metadata(required = true)
private String name; private String name;


@XmlAttribute(name = "inHeader") @XmlAttribute(name = "inHeader")
Expand Down
Expand Up @@ -32,7 +32,7 @@ public abstract class RestSecurityDefinition {
@XmlTransient @XmlTransient
RestDefinition rest; RestDefinition rest;


@XmlAttribute(required = true) @Metadata(required = "true") @XmlAttribute(required = true) @Metadata(required = true)
private String key; private String key;


@XmlAttribute @XmlAttribute
Expand Down
Expand Up @@ -31,7 +31,7 @@
@XmlAccessorType(XmlAccessType.FIELD) @XmlAccessorType(XmlAccessType.FIELD)
public class SecurityDefinition { public class SecurityDefinition {


@XmlAttribute(required = true) @Metadata(required = "true") @XmlAttribute(required = true) @Metadata(required = true)
private String key; private String key;


@XmlAttribute @XmlAttribute
Expand Down
Expand Up @@ -49,7 +49,7 @@
public class AhcEndpoint extends DefaultEndpoint implements AsyncEndpoint, HeaderFilterStrategyAware { public class AhcEndpoint extends DefaultEndpoint implements AsyncEndpoint, HeaderFilterStrategyAware {


private AsyncHttpClient client; private AsyncHttpClient client;
@UriPath @Metadata(required = "true") @UriPath @Metadata(required = true)
private URI httpUri; private URI httpUri;
@UriParam @UriParam
private boolean bridgeEndpoint; private boolean bridgeEndpoint;
Expand Down
Expand Up @@ -28,7 +28,7 @@
*/ */
public class ApnsComponent extends DefaultComponent { public class ApnsComponent extends DefaultComponent {


@Metadata(required = "true") @Metadata(required = true)
private ApnsService apnsService; private ApnsService apnsService;


public ApnsComponent() { public ApnsComponent() {
Expand Down
Expand Up @@ -38,11 +38,11 @@
public class AS2Configuration { public class AS2Configuration {


@UriPath @UriPath
@Metadata(required = "true") @Metadata(required = true)
private AS2ApiName apiName; private AS2ApiName apiName;


@UriParam @UriParam
@Metadata(required = "true") @Metadata(required = true)
private String methodName; private String methodName;


@UriParam(defaultValue = "1.1", enums = "1.0,1.1") @UriParam(defaultValue = "1.1", enums = "1.0,1.1")
Expand Down

0 comments on commit a9565d4

Please sign in to comment.