org.squashtest.tm.tools.annotation.processor
Class DynamicManagerProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.squashtest.tm.tools.annotation.processor.DynamicComponentProcessor<org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager>
org.squashtest.tm.tools.annotation.processor.DynamicManagerProcessor
- All Implemented Interfaces:
- Processor
@SupportedAnnotationTypes(value="org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager")
@SupportedSourceVersion(value=RELEASE_6)
public class DynamicManagerProcessor
- extends DynamicComponentProcessor<org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager>
Consumes DynamicManager annotated interfacrs and produces spring configuration accordlingly.
- Author:
- Gregory Fouquet
|
Method Summary |
protected Class<org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager> |
annotationClass()
|
protected String |
beanFactoryClass()
|
protected String |
beanName(org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager componentDefinition)
Should get the "name" property of the annotation. |
protected Class<?> |
entityClass(org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager componentDefinition)
Should get the entity property of the given component definition. |
protected String |
generatedFileName()
|
protected boolean |
lookupCustomImplementation(org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager definition)
|
protected CharSequence |
sessionFactoryName(org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager definition,
Element component)
This method should issue an error if no sessionFactoryName is extractible from annotation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicManagerProcessor
public DynamicManagerProcessor()
beanFactoryClass
protected String beanFactoryClass()
- Specified by:
beanFactoryClass in class DynamicComponentProcessor<org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager>
annotationClass
protected Class<org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager> annotationClass()
- Specified by:
annotationClass in class DynamicComponentProcessor<org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager>
generatedFileName
protected String generatedFileName()
- Specified by:
generatedFileName in class DynamicComponentProcessor<org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager>
entityClass
protected Class<?> entityClass(org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager componentDefinition)
- Description copied from class:
DynamicComponentProcessor
- Should get the entity property of the given component definition. Which should puke a
MirroredTypeException but it's OK.
- Specified by:
entityClass in class DynamicComponentProcessor<org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager>
- Returns:
- See Also:
DynamicComponentProcessor.entityClass(java.lang.annotation.Annotation)
beanName
protected String beanName(org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager componentDefinition)
- Description copied from class:
DynamicComponentProcessor
- Should get the "name" property of the annotation.
- Specified by:
beanName in class DynamicComponentProcessor<org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager>
- Returns:
- See Also:
DynamicComponentProcessor.beanName(java.lang.annotation.Annotation)
lookupCustomImplementation
protected boolean lookupCustomImplementation(org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager definition)
- Specified by:
lookupCustomImplementation in class DynamicComponentProcessor<org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager>
- Returns:
- whether dynamic component factory should lookup custom implementation or not.
- See Also:
DynamicComponentProcessor.lookupCustomImplementation(java.lang.annotation.Annotation)
sessionFactoryName
protected CharSequence sessionFactoryName(org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager definition,
Element component)
- Description copied from class:
DynamicComponentProcessor
- This method should issue an error if no sessionFactoryName is extractible from annotation.
- Specified by:
sessionFactoryName in class DynamicComponentProcessor<org.squashtest.tm.core.dynamicmanager.annotation.DynamicManager>
- Returns:
- the bean name of the session factory which should be used.
- See Also:
org.squashtest.tm.tools.annotation.processor.DynamicComponentProcessor#sessionFactoryName(java.lang.annotation.Annotation)
Copyright © 2010-2014 Henix, henix.fr. All Rights Reserved.