@Retention(value=RUNTIME)
@Target(value=ANNOTATION_TYPE)
public @interface ListenerClass
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.String |
setter
Name of the setter method on the target type for the listener.
|
java.lang.String |
targetType |
java.lang.String |
type
Fully-qualified class name of the listener type.
|
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.Class<? extends java.lang.Enum<?>> |
callbacks
Enum which declares the listener callback methods.
|
java.lang.String |
legacyTargetType |
java.lang.String |
legacyType |
ListenerMethod[] |
method
Method data for single-method listener callbacks.
|
java.lang.String |
remover
Name of the method on the target type to remove the listener.
|
public abstract java.lang.String setter
public abstract java.lang.String remover
setter() will be used by default.public abstract java.lang.Class<? extends java.lang.Enum<?>> callbacks
method().public abstract ListenerMethod[] method
callbacks()
and an error to specify more than one value.