com.framework.jdto.properties
Class JdtoProperties

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

public final class JdtoProperties
extends Object
implements 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 String getDatasourceJNDIName()
           
static String getInitialContextFactory()
           
static String getProviderURL()
           
static String getString(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 String getString(String key)
                        throws MissingResourceException
Retrieve a value from the properties file.

Throws:
MissingResourceException - If the key is not found.

getDatasourceJNDIName

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

getInitialContextFactory

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

getProviderURL

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