Interface ResourceOperationRuntimeHandler

    • Method Detail

      • addRuntime

        default void addRuntime​(org.jboss.as.controller.OperationContext context,
                                org.jboss.as.controller.registry.Resource resource)
                         throws org.jboss.as.controller.OperationFailedException
        Adds runtime behavior for the specified resource.
        Parameters:
        context - the context of the operation
        resource - the target resource
        Throws:
        org.jboss.as.controller.OperationFailedException - if the operation should fail
      • addRuntime

        void addRuntime​(org.jboss.as.controller.OperationContext context,
                        org.jboss.dmr.ModelNode model)
                 throws org.jboss.as.controller.OperationFailedException
        Adds runtime behavior for a resource with the specified model.
        Parameters:
        context - the context of the operation
        model - the resource model
        Throws:
        org.jboss.as.controller.OperationFailedException - if the operation should fail
      • removeRuntime

        default void removeRuntime​(org.jboss.as.controller.OperationContext context,
                                   org.jboss.as.controller.registry.Resource resource)
                            throws org.jboss.as.controller.OperationFailedException
        Removes runtime behavior for the specified resource.
        Parameters:
        context - the context of the operation
        resource - the target resource
        Throws:
        org.jboss.as.controller.OperationFailedException - if the operation should fail
      • removeRuntime

        void removeRuntime​(org.jboss.as.controller.OperationContext context,
                           org.jboss.dmr.ModelNode model)
                    throws org.jboss.as.controller.OperationFailedException
        Removes runtime behavior for a resource with the specified model.
        Parameters:
        context - the context of the operation
        model - the resource model
        Throws:
        org.jboss.as.controller.OperationFailedException - if the operation should fail
      • readModel

        default org.jboss.dmr.ModelNode readModel​(org.jboss.as.controller.registry.Resource resource)
        Returns the model of the specified resource. This can be overridden to provide a recursively read model.
        Parameters:
        resource - the resource associated with the current operation
        Returns:
        the resource model