Class Util
java.lang.Object
org.jboss.as.connector.subsystems.common.jndi.Util
Common use utility methods.
- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcleanJndiName(String rawJndiName, Boolean useJavaContext) static StringgetJndiName(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode modelNode) Extracts the raw JNDI_NAME 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 Details
-
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 JNDI_NAME 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
-
cleanJndiName
-