org.objectweb.fractal.fraclet.annotation.processor
Class ServiceProcessor
java.lang.Object
spoon.processing.AbstractProcessor<E>
spoon.processing.AbstractAnnotationProcessor<Service,spoon.reflect.declaration.CtField<?>>
org.objectweb.fractal.fraclet.annotation.processor.ServiceProcessor
- All Implemented Interfaces:
- spoon.processing.AnnotationProcessor<Service,spoon.reflect.declaration.CtField<?>>, spoon.processing.FactoryAccessor, spoon.processing.Processor<spoon.reflect.declaration.CtField<?>>
public class ServiceProcessor
- extends spoon.processing.AbstractAnnotationProcessor<Service,spoon.reflect.declaration.CtField<?>>
An annotation processor to manage the
@Service
annotation. If no
@Requires
annotation is defined within the class this processor will be used,
otherwise the RequiresProcessor will manage also the
@Service
annotation.
- Author:
- Nicolas Pessemier
Methods inherited from class spoon.processing.AbstractAnnotationProcessor |
addConsumedAnnotationType, addProcessedAnnotationType, clearConsumedAnnotationTypes, clearProcessedAnnotationTypes, getConsumedAnnotationTypes, getProcessedAnnotationTypes, isToBeProcessed, process, removeConsumedAnnotationType, removeProcessedAnnotationType |
Methods inherited from class spoon.processing.AbstractProcessor |
addProcessedElementType, clearProcessedElementType, getEnvironment, getFactory, getProcessedElementTypes, getTraversalStrategy, process, processingDone, removeProcessedElementType, setFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface spoon.processing.Processor |
getEnvironment, getProcessedElementTypes, getTraversalStrategy, process, processingDone |
Methods inherited from interface spoon.processing.FactoryAccessor |
getFactory, setFactory |
ServiceProcessor
public ServiceProcessor()
init
public void init()
- Specified by:
init
in interface spoon.processing.Processor<spoon.reflect.declaration.CtField<?>>
- Overrides:
init
in class spoon.processing.AbstractProcessor<spoon.reflect.declaration.CtField<?>>
inferConsumedAnnotationType
public boolean inferConsumedAnnotationType()
- Specified by:
inferConsumedAnnotationType
in interface spoon.processing.AnnotationProcessor<Service,spoon.reflect.declaration.CtField<?>>
- Overrides:
inferConsumedAnnotationType
in class spoon.processing.AbstractAnnotationProcessor<Service,spoon.reflect.declaration.CtField<?>>
process
public void process(Service fractalAnnotation,
spoon.reflect.declaration.CtField<?> processedField)
- A constructor for the AttributeProcessor
- Parameters:
fractalAnnotation
- the Requires annotationprocessedField
- the CtField processed