|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.muse.util.messages.MessagesFactory
MessagesFactory is a static factory that allows any object to look up
a resource bundle associated with its Java package. If the classpath
contains a file named Messages.properties in the same package as
the caller, that properties file will be parsed into a
Messages collection; this collection can then be
used to lookup external messages.
This class loads Messages objects only when they are requested and then
caches them for future lookups. It will hold onto the Messages it loads
for the lifetime of the application.
Messages
Constructor Summary | |
---|---|
MessagesFactory()
|
Method Summary | |
---|---|
static Messages |
get(java.lang.Object obj)
Inspects the object to discover the package name of its Java class and tries to load a properties file in that package. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessagesFactory()
Method Detail |
public static Messages get(java.lang.Object obj)
obj
- The object that wishes to get the Messages associated with its
Java package.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |