org.apache.tapestry.annotations
Class InjectObjectAnnotationWorker
java.lang.Object
org.apache.tapestry.annotations.InjectObjectAnnotationWorker
- All Implemented Interfaces:
- MethodAnnotationEnhancementWorker
public class InjectObjectAnnotationWorker
- extends java.lang.Object
- implements MethodAnnotationEnhancementWorker
Performs injection of objects, in much the same way as the <inject> element in a
specification.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
- See Also:
InjectObjectWorker
,
InjectObject
Method Summary |
void |
performEnhancement(org.apache.tapestry.enhance.EnhancementOperation op,
org.apache.tapestry.spec.IComponentSpecification spec,
java.lang.reflect.Method method,
org.apache.hivemind.Location location)
Performs a particular enhancement based on a registered annotation. |
void |
setProvider(org.apache.tapestry.services.InjectedValueProvider provider)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InjectObjectAnnotationWorker
public InjectObjectAnnotationWorker()
performEnhancement
public void performEnhancement(org.apache.tapestry.enhance.EnhancementOperation op,
org.apache.tapestry.spec.IComponentSpecification spec,
java.lang.reflect.Method method,
org.apache.hivemind.Location location)
- Description copied from interface:
MethodAnnotationEnhancementWorker
- Performs a particular enhancement based on a registered annotation. Exception reporting is
the responsibility of the caller.
- Specified by:
performEnhancement
in interface MethodAnnotationEnhancementWorker
- Parameters:
op
- the enhancement operarationspec
- the specification of the component for which a class is being enhancedmethod
- the method to which the annotation is attached. The annotation
may be obtained from the method.location
- TODO
setProvider
public void setProvider(org.apache.tapestry.services.InjectedValueProvider provider)