org.apache.tapestry.annotations
Class MetaAnnotationWorker

java.lang.Object
  extended by 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

Constructor Summary
MetaAnnotationWorker()
           
 
Method Summary
 void performEnhancement(EnhancementOperation op, IComponentSpecification spec, Class baseClass, org.apache.hivemind.Location location)
          Performs a particular enhancement based on a registered annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaAnnotationWorker

public MetaAnnotationWorker()
Method Detail

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 operaration
spec - the specification of the component for which a class is being enhanced
baseClass - the class containing the annotation
location - the location associated with the annotation


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.