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, waitFor
protected 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
AbstractRuntimeOnlyHandler
OperationContext.Stage.RUNTIME
.
If the operation fails, context.getFailureDescroption()
must be called, or OperationFailedException
must be thrown, before calling context.completeStep()
.
If the operation succeeded, context.getResult()
should
be called and the result populated with the outcome, after which context.completeStep()
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 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 © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.