INT-4225: Polishing

Fix static imports for `@Default`
Add JavaDoc for the `SimpleWebServiceOutboundGateway.setExtractPayload()`
This commit is contained in:
Artem Bilan
2017-03-02 11:07:42 -05:00
committed by Gary Russell
parent 28e8f23fd0
commit 4403519e5f
2 changed files with 7 additions and 9 deletions

View File

@@ -16,13 +16,8 @@
package org.springframework.integration.annotation;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@@ -40,7 +35,7 @@ import java.lang.annotation.Target;
*
* @since 5.0
*/
@Target({TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR})
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.CONSTRUCTOR})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Default {

View File

@@ -85,8 +85,11 @@ public class SimpleWebServiceOutboundGateway extends AbstractWebServiceOutboundG
}
/**
*
* @param extractPayload
* A flag to return the whole {@link WebServiceMessage} or build
* {@code payload} based on {@link WebServiceMessage}
* and populated headers according {@code headerMapper} configuration.
* Defaults to extract payload.
* @param extractPayload build payload or return a whole {@link WebServiceMessage}
* @since 5.0
*/
public void setExtractPayload(boolean extractPayload) {