INT-4424: No @Inherited on method annotations
JIRA: https://jira.spring.io/browse/INT-4424 * Polishing for `phase` JavaDocs
This commit is contained in:
committed by
Gary Russell
parent
35c7ef1131
commit
f4809aa997
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -33,7 +33,7 @@ import java.lang.annotation.Target;
|
||||
* @author Oleg Zhurakousky
|
||||
* @author Artem Bilan
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
|
||||
@Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface Aggregator {
|
||||
@@ -93,7 +93,7 @@ public @interface Aggregator {
|
||||
|
||||
/**
|
||||
* Specify a {@link org.springframework.context.SmartLifecycle} {@code phase} option.
|
||||
* Defaults {@code 0} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* Defaults {@code Integer.MAX_VALUE / 2} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* and {@code Integer.MIN_VALUE} for {@link org.springframework.integration.endpoint.EventDrivenConsumer}.
|
||||
* Can be specified as 'property placeholder', e.g. {@code ${foo.phase}}.
|
||||
* @return the {@code SmartLifecycle} phase.
|
||||
@@ -106,6 +106,6 @@ public @interface Aggregator {
|
||||
* This attribute is an {@code array} just to allow an empty default (no poller).
|
||||
* Only one {@link Poller} element is allowed.
|
||||
*/
|
||||
Poller[] poller() default {};
|
||||
Poller[] poller() default { };
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014 the original author or authors.
|
||||
* Copyright 2014-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,7 +18,6 @@ package org.springframework.integration.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
@@ -37,13 +36,14 @@ import java.lang.annotation.Target;
|
||||
* is used as the {@code outputChannel} of the {@link org.springframework.integration.handler.BridgeHandler}.
|
||||
*
|
||||
* @author Artem Bilan
|
||||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
|
||||
@Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
@Documented
|
||||
public @interface BridgeFrom {
|
||||
|
||||
/**
|
||||
* @return the inbound channel name to receive message for the
|
||||
* {@link org.springframework.integration.handler.BridgeHandler}
|
||||
@@ -56,7 +56,14 @@ public @interface BridgeFrom {
|
||||
*/
|
||||
String autoStartup() default "true";
|
||||
|
||||
String phase() default "0";
|
||||
/**
|
||||
* Specify a {@link org.springframework.context.SmartLifecycle} {@code phase} option.
|
||||
* Defaults {@code Integer.MAX_VALUE / 2} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* and {@code Integer.MIN_VALUE} for {@link org.springframework.integration.endpoint.EventDrivenConsumer}.
|
||||
* Can be specified as 'property placeholder', e.g. {@code ${foo.phase}}.
|
||||
* @return the {@code SmartLifecycle} phase.
|
||||
*/
|
||||
String phase() default "";
|
||||
|
||||
/**
|
||||
* @return the {@link Poller} options for a polled endpoint
|
||||
@@ -64,5 +71,6 @@ public @interface BridgeFrom {
|
||||
* This attribute is an {@code array} just to allow an empty default (no poller).
|
||||
* Only one {@link Poller} element is allowed.
|
||||
*/
|
||||
Poller[] poller() default {};
|
||||
Poller[] poller() default { };
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014 the original author or authors.
|
||||
* Copyright 2014-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,7 +18,6 @@ package org.springframework.integration.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
@@ -42,13 +41,14 @@ import java.lang.annotation.Target;
|
||||
* If no output channel is provided and no reply-channel exists, an exception is thrown.
|
||||
*
|
||||
* @author Artem Bilan
|
||||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
|
||||
@Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
@Documented
|
||||
public @interface BridgeTo {
|
||||
|
||||
/**
|
||||
* @return the outbound channel name to send the message to
|
||||
* {@link org.springframework.integration.handler.BridgeHandler}.
|
||||
@@ -63,7 +63,14 @@ public @interface BridgeTo {
|
||||
*/
|
||||
String autoStartup() default "true";
|
||||
|
||||
String phase() default "0";
|
||||
/**
|
||||
* Specify a {@link org.springframework.context.SmartLifecycle} {@code phase} option.
|
||||
* Defaults {@code Integer.MAX_VALUE / 2} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* and {@code Integer.MIN_VALUE} for {@link org.springframework.integration.endpoint.EventDrivenConsumer}.
|
||||
* Can be specified as 'property placeholder', e.g. {@code ${foo.phase}}.
|
||||
* @return the {@code SmartLifecycle} phase.
|
||||
*/
|
||||
String phase() default "";
|
||||
|
||||
/**
|
||||
* @return the {@link org.springframework.integration.annotation.Poller} options for a polled endpoint
|
||||
@@ -71,5 +78,6 @@ public @interface BridgeTo {
|
||||
* This attribute is an {@code array} just to allow an empty default (no poller).
|
||||
* Only one {@link org.springframework.integration.annotation.Poller} element is allowed.
|
||||
*/
|
||||
Poller[] poller() default {};
|
||||
Poller[] poller() default { };
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -40,7 +40,7 @@ import java.lang.annotation.Target;
|
||||
* @author Artem Bilan
|
||||
* @since 2.0
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
|
||||
@Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface Filter {
|
||||
@@ -80,7 +80,7 @@ public @interface Filter {
|
||||
* Only the handler is advised, not the downstream flow.
|
||||
* @return the advice chain.
|
||||
*/
|
||||
String[] adviceChain() default {};
|
||||
String[] adviceChain() default { };
|
||||
|
||||
/**
|
||||
* When {@code true} (default) any discard action (and exception thrown) will occur
|
||||
@@ -115,7 +115,7 @@ public @interface Filter {
|
||||
|
||||
/**
|
||||
* Specify a {@link org.springframework.context.SmartLifecycle} {@code phase} option.
|
||||
* Defaults {@code 0} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* Defaults {@code Integer.MAX_VALUE / 2} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* and {@code Integer.MIN_VALUE} for {@link org.springframework.integration.endpoint.EventDrivenConsumer}.
|
||||
* Can be specified as 'property placeholder', e.g. {@code ${foo.phase}}.
|
||||
* @return the {@code SmartLifecycle} phase.
|
||||
@@ -128,6 +128,6 @@ public @interface Filter {
|
||||
* This attribute is an {@code array} just to allow an empty default (no poller).
|
||||
* Only one {@link Poller} element is allowed.
|
||||
*/
|
||||
Poller[] poller() default {};
|
||||
Poller[] poller() default { };
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,7 +18,6 @@ package org.springframework.integration.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
@@ -59,7 +58,6 @@ import java.lang.annotation.Target;
|
||||
*/
|
||||
@Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
@Documented
|
||||
public @interface Gateway {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2016 the original author or authors.
|
||||
* Copyright 2014-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,7 +18,6 @@ package org.springframework.integration.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
@@ -46,11 +45,11 @@ import org.springframework.core.annotation.AliasFor;
|
||||
*
|
||||
* @author Artem Bilan
|
||||
* @author Gary Russell
|
||||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
|
||||
@Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
@Documented
|
||||
public @interface InboundChannelAdapter {
|
||||
|
||||
@@ -74,7 +73,14 @@ public @interface InboundChannelAdapter {
|
||||
*/
|
||||
String autoStartup() default "true";
|
||||
|
||||
String phase() default "0";
|
||||
/**
|
||||
* Specify a {@link org.springframework.context.SmartLifecycle} {@code phase} option.
|
||||
* Defaults {@code Integer.MAX_VALUE / 2} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* and {@code Integer.MIN_VALUE} for {@link org.springframework.integration.endpoint.EventDrivenConsumer}.
|
||||
* Can be specified as 'property placeholder', e.g. {@code ${foo.phase}}.
|
||||
* @return the {@code SmartLifecycle} phase.
|
||||
*/
|
||||
String phase() default "";
|
||||
|
||||
/**
|
||||
* @return the {@link org.springframework.integration.annotation.Poller} options for a polled endpoint
|
||||
@@ -83,6 +89,6 @@ public @interface InboundChannelAdapter {
|
||||
* Only one {@link org.springframework.integration.annotation.Poller} element is allowed.
|
||||
* NOTE: a {@link Poller} here has {@link Poller#maxMessagesPerPoll()} set to 1 by default.
|
||||
*/
|
||||
Poller[] poller() default {};
|
||||
Poller[] poller() default { };
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,7 +18,6 @@ package org.springframework.integration.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
@@ -28,11 +27,11 @@ import java.lang.annotation.Target;
|
||||
* a group. See {@code SmartLifecycleRoleController}.
|
||||
*
|
||||
* @author Gary Russell
|
||||
*
|
||||
* @since 4.2
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
|
||||
@Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
@Documented
|
||||
public @interface Role {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,7 +18,6 @@ package org.springframework.integration.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
@@ -45,9 +44,8 @@ import java.lang.annotation.Target;
|
||||
* @author Mark Fisher
|
||||
* @author Artem Bilan
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
|
||||
@Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
@Documented
|
||||
public @interface Router {
|
||||
|
||||
@@ -71,7 +69,7 @@ public @interface Router {
|
||||
* @return the channelMappings.
|
||||
* @see org.springframework.integration.router.AbstractMappingMessageRouter#setChannelMapping(String, String)
|
||||
*/
|
||||
String[] channelMappings() default {};
|
||||
String[] channelMappings() default { };
|
||||
|
||||
/**
|
||||
* Specify a prefix to be added to each channel name prior to resolution.
|
||||
@@ -141,7 +139,7 @@ public @interface Router {
|
||||
|
||||
/**
|
||||
* Specify a {@link org.springframework.context.SmartLifecycle} {@code phase} option.
|
||||
* Defaults {@code 0} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* Defaults {@code Integer.MAX_VALUE / 2} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* and {@code Integer.MIN_VALUE} for {@link org.springframework.integration.endpoint.EventDrivenConsumer}.
|
||||
* Can be specified as 'property placeholder', e.g. {@code ${foo.phase}}.
|
||||
* @return the {@code SmartLifecycle} phase.
|
||||
@@ -154,6 +152,6 @@ public @interface Router {
|
||||
* This attribute is an {@code array} just to allow an empty default (no poller).
|
||||
* Only one {@link Poller} element is allowed.
|
||||
*/
|
||||
Poller[] poller() default {};
|
||||
Poller[] poller() default { };
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ package org.springframework.integration.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
@@ -45,7 +44,6 @@ import java.lang.annotation.Target;
|
||||
*/
|
||||
@Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
@Documented
|
||||
public @interface ServiceActivator {
|
||||
|
||||
@@ -104,7 +102,7 @@ public @interface ServiceActivator {
|
||||
|
||||
/**
|
||||
* Specify a {@link org.springframework.context.SmartLifecycle} {@code phase} option.
|
||||
* Defaults {@code 0} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* Defaults {@code Integer.MAX_VALUE / 2} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* and {@code Integer.MIN_VALUE} for {@link org.springframework.integration.endpoint.EventDrivenConsumer}.
|
||||
* Can be specified as 'property placeholder', e.g. {@code ${foo.phase}}.
|
||||
* @return the {@code SmartLifecycle} phase.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -42,7 +42,7 @@ import java.lang.annotation.Target;
|
||||
* @author Gary Russell
|
||||
* @author Artem Bilan
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
|
||||
@Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface Splitter {
|
||||
@@ -78,7 +78,7 @@ public @interface Splitter {
|
||||
* Only the handler is advised, not the downstream flow.
|
||||
* @return the advice chain.
|
||||
*/
|
||||
String[] adviceChain() default {};
|
||||
String[] adviceChain() default { };
|
||||
|
||||
/**
|
||||
* Specify the maximum amount of time in milliseconds to wait when sending a reply
|
||||
@@ -104,7 +104,7 @@ public @interface Splitter {
|
||||
|
||||
/**
|
||||
* Specify a {@link org.springframework.context.SmartLifecycle} {@code phase} option.
|
||||
* Defaults {@code 0} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* Defaults {@code Integer.MAX_VALUE / 2} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* and {@code Integer.MIN_VALUE} for {@link org.springframework.integration.endpoint.EventDrivenConsumer}.
|
||||
* Can be specified as 'property placeholder', e.g. {@code ${foo.phase}}.
|
||||
* @return the {@code SmartLifecycle} phase.
|
||||
@@ -117,6 +117,6 @@ public @interface Splitter {
|
||||
* This attribute is an {@code array} just to allow an empty default (no poller).
|
||||
* Only one {@link Poller} element is allowed.
|
||||
*/
|
||||
Poller[] poller() default {};
|
||||
Poller[] poller() default { };
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,7 +18,6 @@ package org.springframework.integration.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
@@ -31,9 +30,8 @@ import java.lang.annotation.Target;
|
||||
* @author Gary Russell
|
||||
* @author Artem Bilan
|
||||
*/
|
||||
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
|
||||
@Target({ ElementType.METHOD, ElementType.ANNOTATION_TYPE })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Inherited
|
||||
@Documented
|
||||
public @interface Transformer {
|
||||
|
||||
@@ -56,7 +54,7 @@ public @interface Transformer {
|
||||
* Only the handler is advised, not the downstream flow.
|
||||
* @return the advice chain.
|
||||
*/
|
||||
String[] adviceChain() default {};
|
||||
String[] adviceChain() default { };
|
||||
|
||||
/**
|
||||
* Specify the maximum amount of time in milliseconds to wait when sending a reply
|
||||
@@ -82,7 +80,7 @@ public @interface Transformer {
|
||||
|
||||
/**
|
||||
* Specify a {@link org.springframework.context.SmartLifecycle} {@code phase} option.
|
||||
* Defaults {@code 0} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* Defaults {@code Integer.MAX_VALUE / 2} for {@link org.springframework.integration.endpoint.PollingConsumer}
|
||||
* and {@code Integer.MIN_VALUE} for {@link org.springframework.integration.endpoint.EventDrivenConsumer}.
|
||||
* Can be specified as 'property placeholder', e.g. {@code ${foo.phase}}.
|
||||
* @return the {@code SmartLifecycle} phase.
|
||||
@@ -95,6 +93,6 @@ public @interface Transformer {
|
||||
* This attribute is an {@code array} just to allow an empty default (no poller).
|
||||
* Only one {@link Poller} element is allowed.
|
||||
*/
|
||||
Poller[] poller() default {};
|
||||
Poller[] poller() default { };
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user