public static class View.ViewConfigPreProcessor extends Object implements ConfigPreProcessor<View>
| Constructor and Description |
|---|
ViewConfigPreProcessor() |
| Modifier and Type | Method and Description |
|---|---|
View |
beforeAddToConfig(View view,
ViewConfigNode viewConfigNode) |
protected void |
validateViewMetaData(View view,
ViewConfigNode viewConfigNode) |
public View beforeAddToConfig(View view, ViewConfigNode viewConfigNode)
beforeAddToConfig in interface ConfigPreProcessor<View>view - 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 nodeprotected void validateViewMetaData(View view, ViewConfigNode viewConfigNode)
Copyright © 2020 The Apache Software Foundation. All rights reserved.