Package org.glassfish.admin.amx.config
Interface AttributeResolver
-
- All Known Subinterfaces:
AMXConfigProxy
@Taxonomy(stability=UNCOMMITTED) @Deprecated public interface AttributeResolver
Deprecated.Interface implemented by MBeans which can resolve a variable to a value. Variable attributes are strings of the form ${...} and are returned as the values of certain Attributes. This interface is intended for use only with config MBeans.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description String
resolveAttribute(String attributeName)
Deprecated.calls getAttribute(), then returns the resolved value or nullAttributeList
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 nullLong
resolveLong(String attributeName)
Deprecated.Get the Attribute and resolve it to a Long or null
-
-
-
Method Detail
-
resolveAttributeValue
@ManagedOperation(impact=0) @Description("Resolve a (possible) ${...} attribute *value* to a real value") String resolveAttributeValue(@Param(name="value") String value)
Deprecated.Resolve an attribute value to a literal. The value should have been previously obtained from an Attribute of the same AMXConfig MBean.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"
- Parameters:
value
- any String- Returns:
- resolved value
-
resolveAttribute
@ManagedOperation(impact=0) @Description("Get and resolve a (possible) ${...} attribute to a real value") String resolveAttribute(@Param(name="attributeName") String attributeName)
Deprecated.calls getAttribute(), then returns the resolved value or null
-
resolveBoolean
@ManagedOperation(impact=0) @Description("Get and resolve a (possible) ${...} attribute to a Boolean, returns null if not found") Boolean resolveBoolean(@Param(name="attributeName") String attributeName)
Deprecated.Get the Attribute and resolve it to a Boolean or null
-
resolveLong
@ManagedOperation(impact=0) @Description("Get and resolve a (possible) ${...} attribute to a Long, returns null if not found") Long resolveLong(@Param(name="attributeName") String attributeName)
Deprecated.Get the Attribute and resolve it to a Long or null
-
resolveAttributes
@ManagedOperation(impact=0) @Description("Get and resolve attributes to values") AttributeList resolveAttributes(@Param(name="attributeNames") String[] attributeNames)
Deprecated.Calls getAttributes(), then returns all resolved values. If the attributes have been annotated with @ResolveTo, then the value is of the correct type (eg String, Boolean, Integer).
-
-