public abstract class AbstractAutoBeanFactory extends Object implements AutoBeanFactory, EnumMap
AutoBeanFactory.Category, AutoBeanFactory.NoWrap
EnumMap.ExtraEnums
Modifier and Type | Field and Description |
---|---|
protected Map<Enum<?>,String> |
enumToStringMap |
protected Map<String,List<Enum<?>>> |
stringsToEnumsMap |
Constructor and Description |
---|
AbstractAutoBeanFactory() |
Modifier and Type | Method and Description |
---|---|
<T> AutoBean<T> |
create(Class<T> clazz)
Allows dynamic creation of AutoBean instances based on declared
parameterizations.
|
<T,U extends T> |
create(Class<T> clazz,
U delegate)
Allows dynamic creation of wrapped AutoBean instances based on declared
parameterizations.
|
<E extends Enum<?>> |
getEnum(Class<E> clazz,
String token)
EnumMap support.
|
String |
getToken(Enum<?> e)
EnumMap support.
|
protected abstract void |
initializeCreatorMap(JsniCreatorMap creatorMap) |
protected abstract void |
initializeEnumMap() |
public <T> AutoBean<T> create(Class<T> clazz)
AutoBeanFactory
create
in interface AutoBeanFactory
T
- the parameterization of the created AutoBean
clazz
- the Class of type T of the new instanceAutoBean
of type T or null
if the interface type
is unknown to the factorypublic <T,U extends T> AutoBean<T> create(Class<T> clazz, U delegate)
AutoBeanFactory
create
in interface AutoBeanFactory
T
- the parameterization of the created AutoBean
U
- the delegate's type, a subtype of Tclazz
- the Class of type T of the new instancedelegate
- a delegate that extends type TAutoBean
of type T or null
if the interface type
is unknown to the factoryprotected abstract void initializeCreatorMap(JsniCreatorMap creatorMap)
protected abstract void initializeEnumMap()
Copyright © 2016. All rights reserved.