Class AbstractEJBComponentRuntimeHandler<T extends EJBComponent>

java.lang.Object
org.jboss.as.controller.AbstractRuntimeOnlyHandler
org.jboss.as.ejb3.subsystem.deployment.AbstractEJBComponentRuntimeHandler<T>
All Implemented Interfaces:
org.jboss.as.controller.OperationStepHandler
Direct Known Subclasses:
MessageDrivenBeanRuntimeHandler, SingletonBeanRuntimeHandler, StatefulSessionBeanRuntimeHandler, StatelessSessionBeanRuntimeHandler

public abstract class AbstractEJBComponentRuntimeHandler<T extends EJBComponent> extends org.jboss.as.controller.AbstractRuntimeOnlyHandler
Base class for operation handlers that provide runtime management for EJBComponents.
Author:
Brian Stansberry (c) 2011 Red Hat Inc.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    executeAgainstComponent(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, T component, String opName, org.jboss.as.controller.PathAddress address)
     
    protected void
    executeReadAttribute(String attributeName, org.jboss.as.controller.OperationContext context, T component, org.jboss.as.controller.PathAddress address)
     
    protected void
    executeRuntimeStep(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation)
     
    protected void
    executeWriteAttribute(String attributeName, org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, T component, org.jboss.as.controller.PathAddress address)
     
    protected boolean
     
    void
    registerComponent(org.jboss.as.controller.PathAddress address, org.jboss.msc.service.ServiceName serviceName)
     
    protected String
    resolveRuntimeName(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathElement address)
    Resolves runtime name of model resource.
    void
    unregisterComponent(org.jboss.as.controller.PathAddress address)
     

    Methods inherited from class org.jboss.as.controller.AbstractRuntimeOnlyHandler

    execute, requiresRuntime, resourceMustExist

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractEJBComponentRuntimeHandler

      protected AbstractEJBComponentRuntimeHandler(EJBComponentType componentType, Class<T> componentClass)
  • Method Details

    • executeRuntimeStep

      protected void executeRuntimeStep(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) throws org.jboss.as.controller.OperationFailedException
      Specified by:
      executeRuntimeStep in class org.jboss.as.controller.AbstractRuntimeOnlyHandler
      Throws:
      org.jboss.as.controller.OperationFailedException
    • registerComponent

      public void registerComponent(org.jboss.as.controller.PathAddress address, org.jboss.msc.service.ServiceName serviceName)
    • unregisterComponent

      public void unregisterComponent(org.jboss.as.controller.PathAddress address)
    • executeReadAttribute

      protected void executeReadAttribute(String attributeName, org.jboss.as.controller.OperationContext context, T component, org.jboss.as.controller.PathAddress address)
    • executeWriteAttribute

      protected void executeWriteAttribute(String attributeName, org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, T component, org.jboss.as.controller.PathAddress address) throws org.jboss.as.controller.OperationFailedException
      Throws:
      org.jboss.as.controller.OperationFailedException
    • executeAgainstComponent

      protected void executeAgainstComponent(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, T component, String opName, org.jboss.as.controller.PathAddress address) throws org.jboss.as.controller.OperationFailedException
      Throws:
      org.jboss.as.controller.OperationFailedException
    • isOperationReadOnly

      protected boolean isOperationReadOnly(String opName)
    • resolveRuntimeName

      protected String resolveRuntimeName(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathElement address)
      Resolves runtime name of model resource.
      Parameters:
      context - - operation context in which handler is invoked
      address - - deployment address
      Returns:
      runtime name of module. Value which is returned is never null.