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 String getName()
      Convenience method returning the name of this attribute.
      default org.jboss.dmr.ModelNode resolveModelAttribute​(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.
      • Methods inherited from interface java.util.function.Supplier

        get
    • 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.OperationFailedException
        Convenience method resolving the value of this attribute from the specified model applying any default value.
        Parameters:
        resolver - an expression resolver
        model - the resource model
        Returns:
        the resolved value
        Throws:
        org.jboss.as.controller.OperationFailedException - if the value was not valid