T
- meta-data typepublic interface ConfigPreProcessor<T extends Annotation>
ViewConfigNode
itself. E.g. to register callbacks supported by the meta-data
(see ViewMetaData.preProcessor()
)Modifier and Type | Method and Description |
---|---|
T |
beforeAddToConfig(T metaData,
ViewConfigNode viewConfigNode) |
T beforeAddToConfig(T metaData, ViewConfigNode viewConfigNode)
metaData
- The annotation-instance which was found or the inherited instance.
Since it's possible to override annotation-attributes alongside the inheritance-path,
it can be a merged representation.
To get rid of meta-data which is only inherited,
it's required to check the presence of the physical annotation e.g. via
ViewConfigNode#getSource#isAnnotationPresent
and return a synthetic literal-instance (as a marker/placeholder),
because 'null' isn't supported as return-value.viewConfigNode
- Instance which represents the current nodeCopyright © 2018 The Apache Software Foundation. All rights reserved.