public class EntityListenersProcessor extends Object implements MetadataProcessor
| Modifier and Type | Field and Description |
|---|---|
private static List<Class<? extends Annotation>> |
JPAListenersAnnotations
The Constant JPAListenersAnnotations.
|
private static org.slf4j.Logger |
log
the log used by this class.
|
| Constructor and Description |
|---|
EntityListenersProcessor() |
| Modifier and Type | Method and Description |
|---|---|
private void |
addCallBackMethod(EntityMetadata metadata,
Class<?> jpaAnnotation,
CallbackMethod callbackMethod)
Adds the call back method.
|
private List<Class<?>> |
getValidJPAAnnotationsFromMethod(Class<?> clazz,
Method method,
int numberOfParams,
Class<?> entityClazz)
Gets the valid jpa annotations from method.
|
private boolean |
isValidJPAEntityListenerAnnotation(Class<?> annotation)
Checks if is valid jpa entity listener annotation.
|
void |
process(Class<?> entityClass,
EntityMetadata metadata)
Process.
|
private static org.slf4j.Logger log
private static final List<Class<? extends Annotation>> JPAListenersAnnotations
public final void process(Class<?> entityClass, EntityMetadata metadata)
MetadataProcessorprocess in interface MetadataProcessorentityClass - the clazzmetadata - the metadataprivate void addCallBackMethod(EntityMetadata metadata, Class<?> jpaAnnotation, CallbackMethod callbackMethod)
metadata - the metadatajpaAnnotation - the jpa annotationcallbackMethod - the callback methodprivate List<Class<?>> getValidJPAAnnotationsFromMethod(Class<?> clazz, Method method, int numberOfParams, Class<?> entityClazz)
clazz - the clazzmethod - the methodnumberOfParams - the number of paramsprivate boolean isValidJPAEntityListenerAnnotation(Class<?> annotation)
annotation - the annotationCopyright © 2015. All Rights Reserved.