<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
com.sumersoft:loader=demo
<loader-repository-config>
java2ParentDelegation=false
</loader- repository-config>
</loader-repository>
</class-loading>
|
public class CommonInformationPortal implements ServletContextListener {
private static Properties properties = null;
public static void load()
{
try{
if(properties == null)
{
properties = new Properties();
properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("CommonInformation.properties"));
}
}
catch(Exception e)
{
return;
}
}
public static String getProperty(String property) {
try{
return properties.getProperty(property);
}
catch(Exception e)
{
return null;
}
}
}
|