public abstract class AbstractEJBComponentRuntimeHandler<T extends EJBComponent> extends AbstractRuntimeOnlyHandler
EJBComponent
s.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, waitFor
protected AbstractEJBComponentRuntimeHandler(EJBComponentType componentType, Class<T> componentClass)
protected void executeRuntimeStep(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
AbstractRuntimeOnlyHandler
OperationContext.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 AbstractRuntimeOnlyHandler
context
- 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
OperationFailedException
protected void executeAgainstComponent(OperationContext context, org.jboss.dmr.ModelNode operation, T component, String opName, PathAddress address) throws OperationFailedException
OperationFailedException
protected boolean isOperationReadOnly(String opName)
protected String resolveRuntimeName(OperationContext context, PathElement address)
context
- - operation context in which handler is invokedaddress
- - deployment addressCopyright © 2013 JBoss by Red Hat. All rights reserved.