Class FixedExtractor<T extends Annotation>
java.lang.Object
org.apache.tapestry5.services.meta.FixedExtractor<T>
- All Implemented Interfaces:
MetaDataExtractor<T>
Implementation of
MetaDataExtractor that is used to set a fixed
value for a fixed meta-data key, when a given annotation is present.- Since:
- 5.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionFixedExtractor(String key) Defaults the value to "true".FixedExtractor(String key, String value) -
Method Summary
Modifier and TypeMethodDescriptionvoidextractMetaData(MutableComponentModel model, T annotation) Invoked on the extractor to extract the appropriate value for the annotation and set the meta data on the model.
-
Constructor Details
-
FixedExtractor
Defaults the value to "true". -
FixedExtractor
-
-
Method Details
-
extractMetaData
Description copied from interface:MetaDataExtractorInvoked on the extractor to extract the appropriate value for the annotation and set the meta data on the model.- Specified by:
extractMetaDatain interfaceMetaDataExtractor<T extends Annotation>- Parameters:
model- on which to set meta dataannotation- class annotation, from whose attributes specific data may be extracted
-