public class FixedExtractor<T extends Annotation> extends 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(String key)
Defaults the value to "true".
|
FixedExtractor(String key,
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(String key)
public FixedExtractor(String key, String value)
public void extractMetaData(MutableComponentModel model, T annotation)
MetaDataExtractor
extractMetaData
in interface MetaDataExtractor<T extends 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.