com.framework.jdto.properties
Class JdtoProperties
java.lang.Object
com.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
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.