com.framework.jdto.properties
Class JdtoProperties

java.lang.Object
  extended bycom.framework.jdto.properties.JdtoProperties
All Implemented Interfaces:
java.io.Serializable

public final class JdtoProperties
extends java.lang.Object
implements java.io.Serializable

This class loads the jdto.properties that is available in the classpath. if the jdto.properties file is not available in the classpath, this throws a MissingResourceException.

Author:
msatish
See Also:
Serialized Form

Method Summary
static java.lang.String getDatasourceJNDIName()
           
static java.lang.String getInitialContextFactory()
           
static java.lang.String getProviderURL()
           
static java.lang.String getString(java.lang.String key)
          Retrieve a value from the properties file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public static java.lang.String getString(java.lang.String key)
                                  throws java.util.MissingResourceException
Retrieve a value from the properties file.

Throws:
java.util.MissingResourceException - If the key is not found.

getDatasourceJNDIName

public static java.lang.String getDatasourceJNDIName()
                                              throws java.util.MissingResourceException
Returns:
datasourceJNDIName - The DataSourceJNDIName parameter that is set in jdto.properties.
Throws:
java.util.MissingResourceException - If the jdto.properties is unavailable in the classpath.

getInitialContextFactory

public static java.lang.String getInitialContextFactory()
                                                 throws java.util.MissingResourceException
Returns:
initialContextFactory - The InitialContextFactory parameter that is set in jdto.properties.
Throws:
java.util.MissingResourceException - If the jdto.properties is unavailable in the classpath.

getProviderURL

public static java.lang.String getProviderURL()
                                       throws java.util.MissingResourceException
Returns:
Returns the providerURL - The ProviderURL parameter that is set in jdto.properties.
Throws:
java.util.MissingResourceException - If the jdto.properties is unavailable in the classpath.