public abstract class AbstractEJBComponentRuntimeHandler<T extends EJBComponent> extends AbstractRuntimeOnlyHandler
EJBComponents.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractEJBComponentRuntimeHandler(EJBComponentType componentType,
Class<T> componentClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeAgainstComponent(OperationContext context,
org.jboss.dmr.ModelNode operation,
T component,
String opName,
PathAddress address) |
protected void |
executeReadAttribute(String attributeName,
OperationContext context,
T component,
PathAddress address) |
protected void |
executeRuntimeStep(OperationContext context,
org.jboss.dmr.ModelNode operation)
Execute this step in
OperationContext.Stage.RUNTIME. |
protected void |
executeWriteAttribute(String attributeName,
OperationContext context,
org.jboss.dmr.ModelNode operation,
T component,
PathAddress address) |
protected boolean |
isOperationReadOnly(String opName) |
void |
registerComponent(PathAddress address,
org.jboss.msc.service.ServiceName serviceName) |
protected String |
resolveRuntimeName(OperationContext context,
PathElement address)
Resolves runtime name of model resource.
|
void |
unregisterComponent(PathAddress address) |
execute, resourceMustExist, waitForprotected AbstractEJBComponentRuntimeHandler(EJBComponentType componentType, Class<T> componentClass)
protected void executeRuntimeStep(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
AbstractRuntimeOnlyHandlerOperationContext.Stage.RUNTIME.
If the operation fails, context.getFailureDescroption()
must be called, or OperationFailedException must be thrown, before calling one of the
context.completeStep variants.
If the operation succeeded, context.getResult() should
be called and the result populated with the outcome, after which one of the
context.completeStep variants
must be called.executeRuntimeStep in class AbstractRuntimeOnlyHandlercontext - the operation contextoperation - the operation being executedOperationFailedException - if the operation failed before calling context.completeStep()public void registerComponent(PathAddress address, org.jboss.msc.service.ServiceName serviceName)
public void unregisterComponent(PathAddress address)
protected void executeReadAttribute(String attributeName, OperationContext context, T component, PathAddress address)
protected void executeWriteAttribute(String attributeName, OperationContext context, org.jboss.dmr.ModelNode operation, T component, PathAddress address) throws OperationFailedException
OperationFailedExceptionprotected void executeAgainstComponent(OperationContext context, org.jboss.dmr.ModelNode operation, T component, String opName, PathAddress address) throws OperationFailedException
OperationFailedExceptionprotected boolean isOperationReadOnly(String opName)
protected String resolveRuntimeName(OperationContext context, PathElement address)
context - - operation context in which handler is invokedaddress - - deployment addressCopyright © 2014 JBoss by Red Hat. All rights reserved.