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
ConstructorsModifierConstructorDescriptionprotectedAbstractEJBComponentRuntimeHandler(EJBComponentType componentType, Class<T> componentClass) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Methods inherited from class org.jboss.as.controller.AbstractRuntimeOnlyHandler
execute, requiresRuntime, resourceMustExist
-
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:
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
-
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
-
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.
-