@Taxonomy(stability=UNCOMMITTED) @Deprecated public interface AttributeResolver
Modifier and Type | Method and Description |
---|---|
String |
resolveAttribute(String attributeName)
Deprecated.
calls getAttribute(), then returns the resolved value or null
|
AttributeList |
resolveAttributes(String[] attributeNames)
Deprecated.
Calls getAttributes(), then returns all resolved values.
|
String |
resolveAttributeValue(String value)
Deprecated.
Resolve an attribute value to a literal.
|
Boolean |
resolveBoolean(String attributeName)
Deprecated.
Get the Attribute and resolve it to a Boolean or null
|
Long |
resolveLong(String attributeName)
Deprecated.
Get the Attribute and resolve it to a Long or null
|
@ManagedOperation(impact=0) @Description(value="Resolve a (possible) ${...} attribute *value* to a real value") String resolveAttributeValue(@Param(name="value") String value)
If the String is not a template string, return the string unchanged.
If the String is a template string, resolve its value if it can be resolved, or 'null' if it cannot be resolved.
Examples:
"${com.sun.aas.installRoot}" => "/glassfish" "${does-not-exist}" => null "${com.myco.moonIsBlue}" => "true" "8080" => "8080" "hello" => "hello"
value
- any String@ManagedOperation(impact=0) @Description(value="Get and resolve a (possible) ${...} attribute to a real value") String resolveAttribute(@Param(name="attributeName") String attributeName)
@ManagedOperation(impact=0) @Description(value="Get and resolve a (possible) ${...} attribute to a Boolean, returns null if not found") Boolean resolveBoolean(@Param(name="attributeName") String attributeName)
@ManagedOperation(impact=0) @Description(value="Get and resolve a (possible) ${...} attribute to a Long, returns null if not found") Long resolveLong(@Param(name="attributeName") String attributeName)
@ManagedOperation(impact=0) @Description(value="Get and resolve attributes to values") AttributeList resolveAttributes(@Param(name="attributeNames") String[] attributeNames)
Copyright © 2021. All rights reserved.