Interface ResourceModelResolver<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default T resolve​(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource)
      Resolves a value from the specified resource, using the specified operation context.
      T resolve​(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode model)
      Resolves a value from the specified resource model, using the specified operation context.
    • Method Detail

      • resolve

        default T resolve​(org.jboss.as.controller.OperationContext context,
                          org.jboss.as.controller.registry.Resource resource)
                   throws org.jboss.as.controller.OperationFailedException
        Description copied from interface: ResourceResolver
        Resolves a value from the specified resource, using the specified operation context.
        Specified by:
        resolve in interface ResourceResolver<T>
        Parameters:
        context - an operation context
        resource - a resource
        Returns:
        the resolved value
        Throws:
        org.jboss.as.controller.OperationFailedException - if the value could not be resolved
      • resolve

        T resolve​(org.jboss.as.controller.OperationContext context,
                  org.jboss.dmr.ModelNode model)
           throws org.jboss.as.controller.OperationFailedException
        Resolves a value from the specified resource model, using the specified operation context.
        Parameters:
        context - an operation context
        model - a resource model
        Returns:
        the resolved value
        Throws:
        org.jboss.as.controller.OperationFailedException - if the value could not be resolved