|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beanfabrics.util.ResourceBundleFactory
public class ResourceBundleFactory
The ResourceBundleFactory is a factory for ResourceBundle objects by class key.
You can configure this factory to produce a custom
ResourceBundle
by extending ResourceBundleFactory and using your
new class as default factory. This can be done by
setFactoryClass(Class)
Field Summary | |
---|---|
static java.lang.String |
SYSPROPKEY_RESOURCE_BUNDLE_FACTORY
|
Constructor Summary | |
---|---|
ResourceBundleFactory()
|
Method Summary | ||
---|---|---|
static java.util.ResourceBundle |
getBundle(java.lang.Class forClass)
Returns the ResourceBundle for the given class. |
|
protected java.util.ResourceBundle |
getBundleImpl(java.lang.Class forClass)
Returns the ResourceBundle for the given class. |
|
protected static ResourceBundleFactory |
getInstance()
Returns the ResourceBundleFactory. |
|
static
|
setFactoryClass(java.lang.Class<T> cls)
Sets the type of the default ResourceBundleFactory to use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SYSPROPKEY_RESOURCE_BUNDLE_FACTORY
Constructor Detail |
---|
public ResourceBundleFactory()
Method Detail |
---|
public static final <T extends ResourceBundleFactory> void setFactoryClass(java.lang.Class<T> cls)
T
- cls
- the type of the default ResourceBundleFactory to useprotected static final ResourceBundleFactory getInstance()
public static final java.util.ResourceBundle getBundle(java.lang.Class forClass)
forClass
-
protected java.util.ResourceBundle getBundleImpl(java.lang.Class forClass)
This method can be overriden to alter the default implementation.
forClass
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |