Package org.wildfly.subsystem.resource
Interface AttributeDefinitionProvider
-
- All Superinterfaces:
Supplier<AttributeDefinition>
- All Known Subinterfaces:
Metric<C>
public interface AttributeDefinitionProvider extends Supplier<AttributeDefinition>
Provider of an attribute definition. Used to support enumeration of the attributes of a resource.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default StringgetName()Convenience method returning the name of this attribute.default org.jboss.dmr.ModelNoderesolveModelAttribute(ExpressionResolver resolver, org.jboss.dmr.ModelNode model)Convenience method resolving the value of this attribute from the specified model applying any default value.
-
-
-
Method Detail
-
getName
default String getName()
Convenience method returning the name of this attribute.- Returns:
- the attribute name
-
resolveModelAttribute
default org.jboss.dmr.ModelNode resolveModelAttribute(ExpressionResolver resolver, org.jboss.dmr.ModelNode model) throws OperationFailedException
Convenience method resolving the value of this attribute from the specified model applying any default value.- Parameters:
resolver- an expression resolvermodel- the resource model- Returns:
- the resolved value
- Throws:
OperationFailedException- if the value was not valid
-
-