|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.genui.UIFactoryManager
public class UIFactoryManager
Platform and technology independent UIFactoryManager. This is a static provider for the current IFactory.
Constructor Summary | |
---|---|
protected |
UIFactoryManager()
Creation of UIFactoryManager is not allowed. |
Method Summary | ||
---|---|---|
static
|
cloneResource(UI pSourceResource)
Creates a clone of the given resource. |
|
static IFactory |
getFactory()
Gets the global IFactory singleton instance. |
|
static IFactory |
getFactoryInstance(Class pFactoryClass)
Creates the global IFactory singleton instance. |
|
static void |
registerThreadFactoryInstance(IFactory pFactory)
Registers the IFactory instance for the current Thread. |
|
static void |
setFactoryInstance(IFactory pFactory)
Sets the global IFactory singleton instance. |
|
static void |
unregisterThreadFactoryInstance()
Unregisters the IFactory instance for the current Thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected UIFactoryManager()
UIFactoryManager
is not allowed.
Method Detail |
---|
public static IFactory getFactory()
IFactory
singleton instance.
IFactory
singleton instance.IFactory
public static void setFactoryInstance(IFactory pFactory)
IFactory
singleton instance.
pFactory
- the factorypublic static IFactory getFactoryInstance(Class pFactoryClass)
IFactory
singleton instance.
pFactoryClass
- the factory class.
IFactory
instance.IFactory
public static void registerThreadFactoryInstance(IFactory pFactory)
IFactory
instance for the current Thread.
pFactory
- the factory.IFactory
public static void unregisterThreadFactoryInstance()
IFactory
instance for the current Thread.
If the factory is not unregistered, it is overwritten in the next registration of any Factory
in this thread.
The factories are stored in a weak hash map. But anyway it is the best way to finally unregister
the Factory if it should not be used anymore, to get deterministic behaviour.
IFactory
public static <UI> UI cloneResource(UI pSourceResource)
UI
- the IResource typepSourceResource
- the technology dependent resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |