|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.metadata.annotation.creator.AbstractFinderUser
org.jboss.metadata.annotation.creator.AbstractCreator<MD>
public abstract class AbstractCreator<MD>
A abstract base creator.
| Field Summary |
|---|
| Fields inherited from class org.jboss.metadata.annotation.creator.AbstractFinderUser |
|---|
finder |
| Constructor Summary | |
|---|---|
protected |
AbstractCreator(AnnotationFinder<AnnotatedElement> finder)
The constructor. |
| Method Summary | ||
|---|---|---|
void |
addProcessor(Processor<MD,Class<?>> processor)
Add a Class> processor. |
|
abstract MD |
create(Collection<Class<?>> classes)
Abstract create method of a Creator |
|
AnnotationContext |
getAnnotationContext()
Create a basic annotation context, based on the information of the added processors. |
|
protected Collection<Class<? extends Annotation>> |
getAnnotationsForScope(AbstractProcessor.Scope scope)
Get annotations for a given Scope. |
|
protected void |
process(MD metaData,
Class<?> type)
Process the meta data. |
|
protected
|
processMetaData(Collection<Class<?>> classes,
T metaData)
Process the meta data. |
|
protected abstract boolean |
validateClass(Class<?> clazz)
Check a class if it needs to be processed. |
|
protected Collection<Class<?>> |
validateClasses(Collection<Class<?>> classes)
Check a set of classes if further processing is needed. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractCreator(AnnotationFinder<AnnotatedElement> finder)
finder - the AnnotationFinder| Method Detail |
|---|
public abstract MD create(Collection<Class<?>> classes)
element - the classes
protected <T extends MD> void processMetaData(Collection<Class<?>> classes,
T metaData)
classes - the classesmetaData - the meta dataprotected abstract boolean validateClass(Class<?> clazz)
clazz - the Class
protected Collection<Class<?>> validateClasses(Collection<Class<?>> classes)
classes - the classes
public void addProcessor(Processor<MD,Class<?>> processor)
processor -
IllegalArgumentException
protected void process(MD metaData,
Class<?> type)
metaData - the meta datatype - a Class
IllegalArgumentExceptionprotected Collection<Class<? extends Annotation>> getAnnotationsForScope(AbstractProcessor.Scope scope)
scope - the Scope
public AnnotationContext getAnnotationContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||