public class FixedExtractor<T extends java.lang.annotation.Annotation> extends java.lang.Object implements MetaDataExtractor<T>
MetaDataExtractor that is used to set a fixed
value for a fixed meta-data key, when a given annotation is present.| Constructor and Description |
|---|
FixedExtractor(java.lang.String key)
Defaults the value to "true".
|
FixedExtractor(java.lang.String key,
java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
void |
extractMetaData(MutableComponentModel model,
T annotation)
Invoked on the extractor to extract the appropriate value for the annotation and
set the meta data on the model.
|
public FixedExtractor(java.lang.String key)
public FixedExtractor(java.lang.String key, java.lang.String value)
public void extractMetaData(MutableComponentModel model, T annotation)
MetaDataExtractorextractMetaData in interface MetaDataExtractor<T extends java.lang.annotation.Annotation>model - on which to set meta dataannotation - class annotation, from whose attributes specific data may be extracted${project.version} - Copyright © 2003-2015 The Apache Software Foundation.