org.apache.tapestry.annotations
Class MetaAnnotationWorker
java.lang.Object
org.apache.tapestry.annotations.MetaAnnotationWorker
- All Implemented Interfaces:
- ClassAnnotationEnhancementWorker
public class MetaAnnotationWorker
- extends Object
- implements ClassAnnotationEnhancementWorker
Recognizes the Meta
annotation, and converts it into
properties on the specification. It is desirable to have meta data in base classes be "merged"
with meta data from sub classes, with the sub classes overriding any conflicting elements from
the base class. What we do is work our way up the inheritance tree to java.lang.Object and work
with each Meta annotation we find.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaAnnotationWorker
public MetaAnnotationWorker()
performEnhancement
public void performEnhancement(EnhancementOperation op,
IComponentSpecification spec,
Class baseClass,
org.apache.hivemind.Location location)
- Description copied from interface:
ClassAnnotationEnhancementWorker
- Performs a particular enhancement based on a registered annotation. Exception reporting is
the responsibility of the caller.
- Specified by:
performEnhancement
in interface ClassAnnotationEnhancementWorker
- Parameters:
op
- the enhancement operarationspec
- the specification of the component for which a class is being enhancedbaseClass
- the class containing the annotationlocation
- the location associated with the annotation
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.