public abstract class AbstractNlsBundleFactoryGwt extends Object implements NlsBundleFactory
NlsBundleFactory
.Modifier and Type | Field and Description |
---|---|
private Map<Class<? extends NlsBundle>,NlsBundle> |
bundleMap
The map with the generated bundles.
|
Constructor and Description |
---|
AbstractNlsBundleFactoryGwt()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
<BUNDLE extends NlsBundle> |
createBundle(Class<BUNDLE> bundleInterface)
This method dynamically creates an instance for the given
bundleInterface . |
protected <BUNDLE extends NlsBundle> |
getBundle(Class<BUNDLE> bundleInterface)
This method gets the
NlsBundle for the given bundleInterface from the internal map. |
protected void |
register(Class<? extends NlsBundle> bundleInterface,
NlsBundle bundle)
Registers the given
bundle for the given bundleInterface . |
public AbstractNlsBundleFactoryGwt()
protected void register(Class<? extends NlsBundle> bundleInterface, NlsBundle bundle)
bundle
for the given bundleInterface
.public <BUNDLE extends NlsBundle> BUNDLE createBundle(Class<BUNDLE> bundleInterface)
NlsBundleFactory
bundleInterface
.createBundle
in interface NlsBundleFactory
BUNDLE
- is the generic type of the requested NlsBundle
.bundleInterface
- the interface of the requested NlsBundle
. Has to be a sub-interface of
NlsBundle
with according methods.NlsBundle
interface.Copyright © 2001–2016 mmm-Team. All rights reserved.