public abstract class AbstractUpdateJndiHandler extends Object implements OperationStepHandler
Modifier and Type | Field and Description |
---|---|
protected static String |
ADD_JNDI |
protected static SimpleAttributeDefinition |
JNDI_BINDING |
protected static String |
REMOVE_JNDI |
Modifier | Constructor and Description |
---|---|
protected |
AbstractUpdateJndiHandler(boolean addOperation) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addJndiName(org.hornetq.jms.server.JMSServerManager jmsServerManager,
String resourceName,
String jndiName) |
void |
execute(OperationContext context,
org.jboss.dmr.ModelNode operation)
Execute this step.
|
protected abstract void |
removeJndiName(org.hornetq.jms.server.JMSServerManager jmsServerManager,
String resourceName,
String jndiName) |
protected static final String ADD_JNDI
protected static final String REMOVE_JNDI
protected static final SimpleAttributeDefinition JNDI_BINDING
protected AbstractUpdateJndiHandler(boolean addOperation)
public void execute(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
OperationStepHandler
context.getFailureDescription()
must be called, before calling one of the
context.completeStep variants
,
or an OperationFailedException
must be thrown.
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.
When this method is invoked the thread context classloader
will
be set to be the defining class loader of the class that implements this interface.
execute
in interface OperationStepHandler
context
- the operation contextoperation
- the operation being executedOperationFailedException
- if the operation failed before calling context.completeStep()
protected abstract void addJndiName(org.hornetq.jms.server.JMSServerManager jmsServerManager, String resourceName, String jndiName) throws Exception
Exception
Copyright © 2014 JBoss by Red Hat. All rights reserved.