public static class Secured.AnnotationPreProcessor extends Object implements ConfigPreProcessor<Secured>
Constructor and Description |
---|
AnnotationPreProcessor() |
Modifier and Type | Method and Description |
---|---|
Secured |
beforeAddToConfig(Secured metaData,
ViewConfigNode viewConfigNode) |
public Secured beforeAddToConfig(Secured metaData, ViewConfigNode viewConfigNode)
beforeAddToConfig
in interface ConfigPreProcessor<Secured>
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 © 2020 The Apache Software Foundation. All rights reserved.