|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigEvaluator
Evaluates the content within ConfigResource
s.
A ConfigEvaluator
generally handles a specific file type.
A particular file type may have more than one possible evaluator, in which
case selection of the evaluator is based upon some data within the
resource.
Field Summary | |
---|---|
static Object |
NO_VALUE
Sentinel value indicating that an evaluator has no evaluation of a requested property. |
Method Summary | |
---|---|
Object |
constructNode(ConstructionContext context)
Creates a new node, ready for injection and decoration. |
Object |
evaluateProperty(PropertyEvaluationContext context,
String property,
Class<?> propertyType)
Evaluates the configuration of a property. |
ConfigResource |
getInnerConfig(ConfigResource config,
Iterable<String> pathParts)
|
Field Detail |
---|
static final Object NO_VALUE
null
" and "there is no result".
Method Detail |
---|
ConfigResource getInnerConfig(ConfigResource config, Iterable<String> pathParts) throws ConfigurationException
ConfigurationException
Object constructNode(ConstructionContext context) throws NodeProvisioningException
If the evaluator cannot construct the new node, implementations may
delegate to super-configuration resources via
ConstructionContext.superConstructNode()
. If it does so, this
method should not return null, since that causes the framework to do the
delegation again.
To provision an alias, this method should return a NodeReference
to the target node.
null
if there's no creation configured in this layer,
or NO_VALUE
if creation is explicitly
disabled.
NodeProvisioningException
Object evaluateProperty(PropertyEvaluationContext context, String property, Class<?> propertyType) throws PropertyEvaluationException
PropertyEvaluationContext.superEvaluateProperty(java.lang.String, java.lang.Class>)
.
NO_VALUE
if
there's no configuration for the property in any resource layer.
PropertyEvaluationException
- if anything goes wrong while
evaluating the property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |