public abstract class AbstractXMLDataSourceRuntimeHandler<T> extends AbstractRuntimeOnlyHandler
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONNECTION_PROPERTIES |
protected static String |
DATA_SOURCE |
protected static String |
XA_DATA_SOURCE |
protected static String |
XA_DATASOURCE_PROPERTIES |
| Constructor and Description |
|---|
AbstractXMLDataSourceRuntimeHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
executeReadAttribute(String attributeName,
OperationContext context,
T dataSource,
PathAddress address) |
protected void |
executeRuntimeStep(OperationContext context,
org.jboss.dmr.ModelNode operation)
Execute this step in
OperationContext.Stage.RUNTIME. |
void |
registerDataSource(PathAddress address,
T dataSource) |
protected void |
setBooleanIfNotNull(OperationContext context,
Boolean value) |
protected void |
setIntIfNotNull(OperationContext context,
Integer value) |
protected void |
setLongIfNotNull(OperationContext context,
Long value) |
protected void |
setStringIfNotNull(OperationContext context,
String value) |
void |
unregisterDataSource(PathAddress address) |
execute, resourceMustExist, waitForprotected static final String CONNECTION_PROPERTIES
protected static final String XA_DATASOURCE_PROPERTIES
protected static final String DATA_SOURCE
protected static final String XA_DATA_SOURCE
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 registerDataSource(PathAddress address, T dataSource)
public void unregisterDataSource(PathAddress address)
protected abstract void executeReadAttribute(String attributeName, OperationContext context, T dataSource, PathAddress address)
protected void setLongIfNotNull(OperationContext context, Long value)
protected void setIntIfNotNull(OperationContext context, Integer value)
protected void setBooleanIfNotNull(OperationContext context, Boolean value)
protected void setStringIfNotNull(OperationContext context, String value)
Copyright © 2014 JBoss by Red Hat. All rights reserved.