Package org.wildfly.subsystem.resource
Interface AttributeDefinitionProvider
-
- All Superinterfaces:
Supplier<org.jboss.as.controller.AttributeDefinition>
- All Known Subinterfaces:
Metric<C>
public interface AttributeDefinitionProvider extends Supplier<org.jboss.as.controller.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(org.jboss.as.controller.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(org.jboss.as.controller.ExpressionResolver resolver, org.jboss.dmr.ModelNode model) throws org.jboss.as.controller.OperationFailedExceptionConvenience 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:
org.jboss.as.controller.OperationFailedException- if the value was not valid
-
-