From f300325b1b2b6257225ca3b70c15115643e91053 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 8 Jul 2015 15:08:29 +0200 Subject: [PATCH] Polishing --- .../context/event/EventListener.java | 12 +++++----- .../event/TransactionalEventListener.java | 22 +++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/context/event/EventListener.java b/spring-context/src/main/java/org/springframework/context/event/EventListener.java index a69ca4d8af..008ddd144e 100644 --- a/spring-context/src/main/java/org/springframework/context/event/EventListener.java +++ b/spring-context/src/main/java/org/springframework/context/event/EventListener.java @@ -29,7 +29,7 @@ import org.springframework.core.annotation.AliasFor; * Annotation that marks a method to listen for application events. The * method may have one (and only one) parameter that reflects the event * type to listen to. Or this annotation may refer to the event type(s) - * using the {@link #classes()} attribute. Events can be {@link ApplicationEvent} + * using the {@link #classes} attribute. Events can be {@link ApplicationEvent} * instances as well as arbitrary objects. * *

Processing of {@code @EventListener} annotations is performed via @@ -57,16 +57,16 @@ import org.springframework.core.annotation.AliasFor; public @interface EventListener { /** - * Alias for {@link #classes()}. + * Alias for {@link #classes}. */ @AliasFor(attribute = "classes") Class[] value() default {}; /** - * The event classes that this listener handles. When this attribute is specified - * with one value, the method parameter may or may not be specified. When this - * attribute is specified with more than one value, the method must not have a - * parameter. + * The event classes that this listener handles. + *

When this attribute is specified with one value, the method parameter + * may or may not be specified. When this attribute is specified with more + * than one value, the method must not have a parameter. */ @AliasFor(attribute = "value") Class[] classes() default {}; diff --git a/spring-tx/src/main/java/org/springframework/transaction/event/TransactionalEventListener.java b/spring-tx/src/main/java/org/springframework/transaction/event/TransactionalEventListener.java index b47d26fe66..836b56ffb7 100644 --- a/spring-tx/src/main/java/org/springframework/transaction/event/TransactionalEventListener.java +++ b/spring-tx/src/main/java/org/springframework/transaction/event/TransactionalEventListener.java @@ -29,7 +29,7 @@ import org.springframework.core.annotation.AliasFor; * An {@link EventListener} that is invoked according to a {@link TransactionPhase}. * *

If the event is not published within the boundaries of a managed transaction, the event - * is discarded unless the {@link #fallbackExecution()} flag is explicitly set. If a + * is discarded unless the {@link #fallbackExecution} flag is explicitly set. If a * transaction is running, the event is processed according to its {@link TransactionPhase}. * *

Adding {@link org.springframework.core.annotation.Order @Order} on your annotated method @@ -45,28 +45,28 @@ import org.springframework.core.annotation.AliasFor; public @interface TransactionalEventListener { /** - * Phase to bind the handling of an event to. If no transaction is in progress, the - * event is not processed at all unless {@link #fallbackExecution} has been - * enabled explicitly. + * Phase to bind the handling of an event to. + *

If no transaction is in progress, the event is not processed at + * all unless {@link #fallbackExecution} has been enabled explicitly. */ TransactionPhase phase() default TransactionPhase.AFTER_COMMIT; /** - * Specify if the event should be processed if no transaction is running. + * Whether the event should be processed if no transaction is running. */ boolean fallbackExecution() default false; /** - * Alias for {@link #classes()}. + * Alias for {@link #classes}. */ @AliasFor(attribute = "classes") Class[] value() default {}; /** - * The event classes that this listener handles. When this attribute is specified - * with one value, the method parameter may or may not be specified. When this - * attribute is specified with more than one value, the method must not have a - * parameter. + * The event classes that this listener handles. + *

When this attribute is specified with one value, the method parameter + * may or may not be specified. When this attribute is specified with more + * than one value, the method must not have a parameter. */ @AliasFor(attribute = "value") Class[] classes() default {}; @@ -74,7 +74,7 @@ public @interface TransactionalEventListener { /** * Spring Expression Language (SpEL) attribute used for making the event * handling conditional. - *

Default is "", meaning the event is always handled. + *

Default is {@code ""}, meaning the event is always handled. * @see EventListener#condition */ String condition() default ""; -- GitLab