java.lang.Object
org.jboss.as.connector.subsystems.common.jndi.Util

public class Util extends Object
Common use utility methods.
Author:
Brian Stansberry (c) 2011 Red Hat Inc.
  • 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

      public static String cleanJndiName(String rawJndiName, Boolean useJavaContext)