Enum Class JobListenerMetaData
- All Implemented Interfaces:
Serializable
,Comparable<JobListenerMetaData>
,Constable
,ListenerMetaData
Enumeration for
JobExecutionListener
meta data, which ties together the names
of methods, their interfaces, annotation, and expected arguments.- Since:
- 2.0
- Author:
- Lucas Ward, Mahmoud Ben Hassine
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JobListenerMetaData
fromPropertyName
(String propertyName) Return the relevant meta data for the provided property name.Class<? extends Annotation>
Class<?>
Class<?>[]
static JobListenerMetaData
Returns the enum constant of this class with the specified name.static JobListenerMetaData[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BEFORE_JOB
-
AFTER_JOB
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMethodName
- Specified by:
getMethodName
in interfaceListenerMetaData
-
getAnnotation
- Specified by:
getAnnotation
in interfaceListenerMetaData
-
getListenerInterface
- Specified by:
getListenerInterface
in interfaceListenerMetaData
-
getPropertyName
- Specified by:
getPropertyName
in interfaceListenerMetaData
-
getParamTypes
- Specified by:
getParamTypes
in interfaceListenerMetaData
-
fromPropertyName
Return the relevant meta data for the provided property name.- Parameters:
propertyName
- name of the property to retrieve.- Returns:
- meta data with supplied property name,
null
if none exists.
-