org.globus.exec.service.utils
Class ConfigurationHelper

java.lang.Object
  extended byorg.globus.exec.service.utils.ConfigurationHelper

public class ConfigurationHelper
extends java.lang.Object


Field Summary
private static org.globus.util.I18n i18n
           
private static org.apache.commons.logging.Log logger
           
 
Constructor Summary
ConfigurationHelper()
           
 
Method Summary
static java.lang.Object getJNDIObject(java.lang.String service, java.lang.String objectName)
           
static java.lang.Object getJNDIObjectForCurrentService(java.lang.String objectName)
           
static ResourceHome getResourceHome(java.lang.String service)
           
static java.lang.Object getResourceHomeConfiguration()
           
static java.lang.Object getResourceHomeConfiguration(java.lang.String service)
           
static java.lang.Object getServiceConfiguration()
           
static java.lang.Object getServiceConfiguration(java.lang.String service)
           
static java.lang.String getServiceJNDILocation()
           
static java.lang.String getServiceJNDILocation(java.lang.String service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.commons.logging.Log logger

i18n

private static org.globus.util.I18n i18n
Constructor Detail

ConfigurationHelper

public ConfigurationHelper()
Method Detail

getResourceHome

public static ResourceHome getResourceHome(java.lang.String service)
                                    throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getResourceHomeConfiguration

public static java.lang.Object getResourceHomeConfiguration(java.lang.String service)
                                                     throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getResourceHomeConfiguration

public static java.lang.Object getResourceHomeConfiguration()
                                                     throws javax.naming.NamingException,
                                                            ResourceContextException
Throws:
javax.naming.NamingException
ResourceContextException

getServiceConfiguration

public static java.lang.Object getServiceConfiguration(java.lang.String service)
                                                throws javax.naming.NamingException
Throws:
javax.naming.NamingException

getServiceConfiguration

public static java.lang.Object getServiceConfiguration()
                                                throws javax.naming.NamingException,
                                                       ResourceContextException
Throws:
javax.naming.NamingException
ResourceContextException

getJNDIObjectForCurrentService

public static java.lang.Object getJNDIObjectForCurrentService(java.lang.String objectName)
                                                       throws javax.naming.NamingException,
                                                              ResourceContextException
Throws:
javax.naming.NamingException
ResourceContextException

getJNDIObject

public static java.lang.Object getJNDIObject(java.lang.String service,
                                             java.lang.String objectName)
                                      throws javax.naming.NamingException
Parameters:
service - String The service within the JNDI context of which the object is located
objectName - String the name of the JNDI resource to look up.
Returns:
Object
Throws:
javax.naming.NamingException - if the JNDI lookup fails

getServiceJNDILocation

public static java.lang.String getServiceJNDILocation(java.lang.String service)

getServiceJNDILocation

public static java.lang.String getServiceJNDILocation()
                                               throws ResourceContextException
Throws:
ResourceContextException