public abstract class DynamicComponentProcessor<ANNOTATION extends Annotation> extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DYNAMIC_COMPONENT_TEMPLATE |
processingEnv| Constructor and Description |
|---|
DynamicComponentProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class<ANNOTATION> |
annotationClass() |
protected abstract String |
beanFactoryClass() |
protected abstract String |
beanName(ANNOTATION componentDefinition)
Should get the "name" property of the annotation.
|
protected void |
checkSessionFactoryName(String name,
Element component) |
protected abstract Class<?> |
entityClass(ANNOTATION componentDefinition)
Should get the entity property of the given component definition.
|
protected abstract String |
generatedFileName() |
protected Messager |
getMessager() |
void |
init(ProcessingEnvironment processingEnv) |
protected abstract boolean |
lookupCustomImplementation(ANNOTATION definition) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnvironment) |
protected abstract CharSequence |
sessionFactoryName(ANNOTATION definition,
Element component)
This method should issue an error if no sessionFactoryName is extractible from annotation.
|
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitializedprotected static final String DYNAMIC_COMPONENT_TEMPLATE
public final void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessorpublic final boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnvironment)
process in interface Processorprocess in class AbstractProcessorAbstractProcessor.process(java.util.Set,
javax.annotation.processing.RoundEnvironment)protected abstract Class<ANNOTATION> annotationClass()
protected abstract Class<?> entityClass(ANNOTATION componentDefinition)
MirroredTypeException but it's OK.componentDefinition - protected abstract String beanName(ANNOTATION componentDefinition)
componentDefinition - protected abstract String beanFactoryClass()
protected abstract String generatedFileName()
protected abstract boolean lookupCustomImplementation(ANNOTATION definition)
definition - protected abstract CharSequence sessionFactoryName(ANNOTATION definition, Element component)
definition - component - protected final Messager getMessager()
Copyright © 2010-2015 Henix, henix.fr. All Rights Reserved.