@Named public class DatatypeDescriptorManagerImpl extends AbstractLoggableComponent implements DatatypeDescriptorManager
DatatypeDescriptorManager.| Modifier and Type | Field and Description |
|---|---|
private Map<Class<?>,DatatypeDescriptor<?>> |
datatypeDescriptorMap
Lazy filled
Map for DatatypeDescriptor. |
private DatatypeDetector |
datatypeDetector |
private static DatatypeDescriptorManagerImpl |
instance |
private ReflectionUtil |
reflectionUtil |
private StringUtil |
stringUtil |
| Constructor and Description |
|---|
DatatypeDescriptorManagerImpl()
The constructor.
|
DatatypeDescriptorManagerImpl(MapFactory<?> mapFactory)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> DatatypeDescriptor<T> |
createDatatypeDescriptor(Class<T> datatype)
|
protected void |
doInitialized()
This method is invoked at the end of the actual
initialization. |
<T> DatatypeDescriptor<T> |
getDatatypeDescriptor(Class<T> inputDatatype)
Gets the
DatatypeDescriptor for the specified datatype. |
static DatatypeDescriptorManager |
getInstance()
This method gets the singleton instance of this
DatatypeDescriptorManager. |
protected void |
registerDatatypeDescriptor(DatatypeDescriptor<?> descriptor) |
void |
setDatatypeDescriptors(List<DatatypeDescriptor<?>> datatypeDescriptors) |
void |
setDatatypeDetector(DatatypeDetector datatypeDetector) |
void |
setReflectionUtil(ReflectionUtil reflectionUtil) |
void |
setStringUtil(StringUtil stringUtil) |
createLogger, doInitialize, getLoggergetInitializationState, initializeprivate static DatatypeDescriptorManagerImpl instance
getInstance()private final Map<Class<?>,DatatypeDescriptor<?>> datatypeDescriptorMap
Map for DatatypeDescriptor.private DatatypeDetector datatypeDetector
setDatatypeDetector(DatatypeDetector)private ReflectionUtil reflectionUtil
setReflectionUtil(ReflectionUtil)private StringUtil stringUtil
setStringUtil(StringUtil)public DatatypeDescriptorManagerImpl()
public DatatypeDescriptorManagerImpl(MapFactory<?> mapFactory)
mapFactory - is the MapFactory used to create internal maps.public static DatatypeDescriptorManager getInstance()
DatatypeDescriptorManager. IocContainer). This method shall only be used for classes that can
not be managed by an IocContainer e.g. for
XmlAdapters. Cdi.GET_INSTANCE before using.protected void doInitialized()
initialization. It is called when
AbstractComponent.initialize() is invoked for the first time after AbstractComponent.doInitialize() is completed and
initialization-state has changed to
initialized. super.AbstractComponent.doInitialized().doInitialized in class AbstractComponent@Inject public void setDatatypeDetector(DatatypeDetector datatypeDetector)
datatypeDetector - is the instance of DatatypeDetector to Inject.@Inject public void setReflectionUtil(ReflectionUtil reflectionUtil)
reflectionUtil - is the instance of ReflectionUtil to Inject.@Inject public void setStringUtil(StringUtil stringUtil)
stringUtil - is the instance of StringUtil to Inject.@Inject public void setDatatypeDescriptors(List<DatatypeDescriptor<?>> datatypeDescriptors)
datatypeDescriptors - is the List of DatatypeDescriptors to Inject.protected void registerDatatypeDescriptor(DatatypeDescriptor<?> descriptor)
descriptor - is the DatatypeDescriptor to register.public <T> DatatypeDescriptor<T> getDatatypeDescriptor(Class<T> inputDatatype) throws IllegalArgumentException
DatatypeDescriptor for the specified datatype.getDatatypeDescriptor in interface DatatypeDescriptorManagerT - is the generic type of the Datatype.inputDatatype - is the Class reflecting the Datatype.DatatypeDescriptor.IllegalArgumentException - is the given Class is not a valid Datatype.protected <T> DatatypeDescriptor<T> createDatatypeDescriptor(Class<T> datatype)
T - is the generic type of the Datatype.datatype - is the Class reflecting the Datatype.DatatypeDescriptor instance.Copyright © 2001–2015 mmm-Team. All rights reserved.