@ComponentSpecification public interface DatatypeDescriptorManager
DatatypeDescriptors for all supported Datatypes.
Instead of writing adapters for all kinds of mapping technologies (hibernate, jackson, jaxb, etc.) you can
simple create central support via DatatypeDescriptorManager and use the generic adapters for
according mapping technologies provided by this project (see
net.sf.mmm.util.lang.base.datatype.adapter). If you use SimpleDatatype there is even
nothing left to do as your Datatype is supported out of the box. For composed Datatypes you
can implement your own DatatypeDescriptor and plugin it into the DatatypeDescriptorManager
via Cdi.| Modifier and Type | Method and Description |
|---|---|
<T> DatatypeDescriptor<T> |
getDatatypeDescriptor(Class<T> datatype)
Gets the
DatatypeDescriptor for the specified datatype. |
<T> DatatypeDescriptor<T> getDatatypeDescriptor(Class<T> datatype) throws IllegalArgumentException
DatatypeDescriptor for the specified datatype.T - is the generic type of the Datatype.datatype - is the Class reflecting the Datatype.DatatypeDescriptor.IllegalArgumentException - is the given Class is not a valid Datatype.Copyright © 2001–2015 mmm-Team. All rights reserved.