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.AbstractRuntimeOnlyHandlerBase class for operation handlers that provide runtime management forEJBComponents.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractEJBComponentRuntimeHandler(EJBComponentType componentType, Class<T> componentClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteAgainstComponent(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, T component, String opName, org.jboss.as.controller.PathAddress address)protected voidexecuteReadAttribute(String attributeName, org.jboss.as.controller.OperationContext context, T component, org.jboss.as.controller.PathAddress address)protected voidexecuteRuntimeStep(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation)protected voidexecuteWriteAttribute(String attributeName, org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, T component, org.jboss.as.controller.PathAddress address)protected booleanisOperationReadOnly(String opName)voidregisterComponent(org.jboss.as.controller.PathAddress address, org.jboss.msc.service.ServiceName serviceName)protected StringresolveRuntimeName(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathElement address)Resolves runtime name of model resource.voidunregisterComponent(org.jboss.as.controller.PathAddress address)
-
-
-
Constructor Detail
-
AbstractEJBComponentRuntimeHandler
protected AbstractEJBComponentRuntimeHandler(EJBComponentType componentType, Class<T> componentClass)
-
-
Method Detail
-
executeRuntimeStep
protected void executeRuntimeStep(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation) throws org.jboss.as.controller.OperationFailedException- Specified by:
executeRuntimeStepin classorg.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 invokedaddress- - deployment address- Returns:
- runtime name of module. Value which is returned is never null.
-
-