|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
Dumper | |
InitialProvider | Base interface for the initial provider. |
PersistentResourceProvider | |
ResourceProvider | Hides various ways of accessing name/value pairs. |
Class Summary | |
BundleResourceProvider | Adapter fuer ResourceBundle |
CompositeResourceProvider | Composite ResourceProvider. |
JNDIInitialProvider | initial provider. looks up variables in JNDI java:/comp/env context System.getProperty() user.properties in root classpath resfactory.properties in root classpath in that order. |
JNDIResourceProvider | Adapter for java naming |
NullResourceProvider | Dummy that does not know any key/values |
PropertyResourceProvider | Adapter for Properties |
ReplacingResourceProvider | |
Resources | Facade to access key/value pairs and application home directory. |
ResourcesFactory | creates and caches Resources .
|
ResourcesFactoryContextListener | sets the locale for JSTL tags |
ServletContextResourceProvider | Adapter for ServletContext initParameter |
SimpleInitialProvider | initial provider. looks up variables System.getProperty() user.properties in root classpath resfactory.properties in root classpath in that order. |
StringDumper | dumps into StringBuffer |
SystemResourceProvider | looksup keys via System.getProperty() |
Exception Summary |
Access to key/value pairs and application home directory.
Resources
is the facade to access
Resources.
ResourcesFactory
contains a description
how to configure the Resources.
ResourcesFactory
looks for a resource bundle named resfactory
in the classpath (root package).
The resfactory may contain the following entries:
tbeller.home |
Path of a directory in the filesystem where the application may want to store data or read property files.
The default is ~/.tonbeller
Example: Example: |
tbeller.usejndi |
defaults to true. If set to false, properties will not looked up via JNDI. Example:
tbeller.usejndi=false |
tbeller.bundles |
Names of ResourceBundle's that will be looked up in the class path
Example: |
tbeller.resources |
Paths of property files, that will be looked up in the file system. If the path is relative,
its releative to tbeller.home (see above), otherwise its taken absolute.
Example Example |
These four variables are looked up
user.properties
in root classpathtbeller.properties
property files in the given ordertbeller.bundles
Resource Bundles in the given orderroot.dir=/usr/local/myapp dir1=${root.dir}/dir1 dir2=${java.io.tmpdir}/dir2may expand to
root.dir=/usr/local/myapp dir1=/usr/local/myapp/dir1 dir2=/tmp/dir2
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |