public abstract class UESComponentFactory
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
private static UESComponentFactory | 
factory
Instance of initialized factory. 
 | 
private static java.lang.String | 
FACTORY_IMPLEMENTATION
Name of factory default implementation class. 
 | 
static java.lang.String | 
UNDEFINED_NAME  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
UESComponentFactory()
ComponentFactory will never be instantiated. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
containsComponent(java.lang.Class<?> aCompClass)
Checks if component factory contains component of given type. 
 | 
static boolean | 
containsComponent(java.lang.Class<?> aCompClass,
Checks if component factory contains component of given class and name (Default
 component name of name explicitly defined on component implementation class or
 interface). 
 | 
protected abstract boolean | 
containsComponentInternal(java.lang.Class<?> aCompClass,
Checks if component factory contains component of given class and name (Default
 component name of name explicitly defined on component implementation class or
 interface). 
 | 
static <T> T | 
getComponent(java.lang.Class<T> aCompClass)
Returns application component based on given type. 
 | 
static <T> T | 
getComponent(java.lang.Class<T> aCompClass,
Returns application component of given class and name (Default component
 name or name explicitly defined on component implementation class or
 interface). 
 | 
protected abstract <T> T | 
getComponentInternal(java.lang.Class<T> aCompClass,
Returns application component of given class and name (Default component
 name or name explicitly defined on component implementation class or
 interface). 
 | 
protected static UESComponentFactory | 
getFactory()
Synchronized with  
UESComponentFactory.initFactory() to avoid problems when not already
 initialized and some other thread calls the
 UESComponentFactory.getComponent(Class, String). | 
protected abstract void | 
init()
Initializes the ComponentFactory before its usage. 
 | 
private static UESComponentFactory | 
initFactory()
Bootstraps the component factory. 
 | 
static void | 
initialize()
Initialize component factory. 
 | 
T - Type of componentaCompClass - Component classUESComponentFactoryRTException - In case initialization of component
           failsaCompClass - Component classUESComponentFactoryRTException - In case checking of component existence
           failsUESComponentFactory.initFactory() to avoid problems when not already
 initialized and some other thread calls the
 UESComponentFactory.getComponent(Class, String).T - Type of componentaCompClass - Component classaCompName - Name of componentUESComponentFactoryRTException - In case initialization of component
           failsaCompClass - Component classaCompName - Name of componentUESComponentFactoryRTException - In case checking of component existence
           failsT - Type of componentaCompClass - Component classaCompName - Name of componentUESComponentFactoryRTException - In case initialization of component
           failsUESComponentFactoryRTExceptionaCompClass - Component classaCompName - Name of componentUESComponentFactoryRTException - In case checking of component existence
           failsUESComponentFactoryRTException - In case initialization of factory fails