Settings refers to configuration 'values' that need to be made available in the
application. This class which should be extended, provided access to setting values
that are defined in web.xml as environment parameters.
An example of an entry in web.xml
<env-entry>
<env-entry-name>myapp.email.smtpHost</env-entry-name>
<env-entry-value>mail.yahoo.com</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
An example of a method in a sub-class that access this setting
public static String getEmailHost() {
return (String) getProperty("myapp.email.smtpHost", String.class, null);
}
version: 1.0 author: PaulE since: 1.3 |