org.jboss.soa.esb.util
Class JndiUtil

java.lang.Object
  extended by org.jboss.soa.esb.util.JndiUtil

public class JndiUtil
extends java.lang.Object

Utilities class for managing JNDI related tasks.

Author:
Daniel Bevenius

Field Summary
static java.lang.String ESB_JNDI_PARAMETER_PREFIX
          General Namespace prefix for ESB related properties.
 
Method Summary
static java.lang.String[] getJndiPrefixes(java.lang.String jndiPrefixesValue)
          Get the list of JNDI extension prefixes.
static java.util.Set<java.lang.String> getJndiPrefixesSet(java.lang.String jndiPrefixesValue)
           
static java.lang.String getPropertyValue(ConfigTree config, java.lang.String propertyName)
           
static java.util.Properties parseEnvironmentProperties(ConfigTree config)
          Parses the passed-in ConfigTree and extracts all properties that have been prefixed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ESB_JNDI_PARAMETER_PREFIX

public static final java.lang.String ESB_JNDI_PARAMETER_PREFIX
General Namespace prefix for ESB related properties. If the property name is prefixed with this string it will be automatically added as one of the JNDI prefixes.

See Also:
Constant Field Values
Method Detail

getJndiPrefixesSet

public static java.util.Set<java.lang.String> getJndiPrefixesSet(java.lang.String jndiPrefixesValue)

getJndiPrefixes

public static java.lang.String[] getJndiPrefixes(java.lang.String jndiPrefixesValue)
Get the list of JNDI extension prefixes.

Parameters:
jndiPrefixesValue - The JNDI prefix list or null if default.
Returns:
The list of JNDI extension prefixes.

parseEnvironmentProperties

public static java.util.Properties parseEnvironmentProperties(ConfigTree config)
Parses the passed-in ConfigTree and extracts all properties that have been prefixed

Parameters:
config -
Returns:

getPropertyValue

public static java.lang.String getPropertyValue(ConfigTree config,
                                                java.lang.String propertyName)