Class Util
- java.lang.Object
-
- org.jboss.as.connector.subsystems.datasources.Util
-
public class Util extends Object
Common use utility methods.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcleanJndiName(String rawJndiName, boolean useJavaContext)static StringgetJndiName(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode modelNode)Extracts the raw JNDINAME value from the given model node, and depending on the value and the value of any USE_JAVA_CONTEXT child node, converts the raw name into a compliant jndi name.
-
-
-
Method Detail
-
getJndiName
public static String getJndiName(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode modelNode) throws org.jboss.as.controller.OperationFailedException
Extracts the raw JNDINAME value from the given model node, and depending on the value and the value of any USE_JAVA_CONTEXT child node, converts the raw name into a compliant jndi name.- Parameters:
modelNode- the model node; either an operation or the model behind a datasource resource- Returns:
- the compliant jndi name
- Throws:
org.jboss.as.controller.OperationFailedException
-
-