Class PersistenceInstantiator.Default<D>
- java.lang.Object
-
- one.microstream.persistence.types.PersistenceInstantiator.Default<D>
-
- All Implemented Interfaces:
PersistenceInstantiator<D>
,PersistenceTypeInstantiatorProvider<D>
- Enclosing interface:
- PersistenceInstantiator<D>
public static final class PersistenceInstantiator.Default<D> extends Object implements PersistenceInstantiator<D>, PersistenceTypeInstantiatorProvider<D>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceInstantiator
PersistenceInstantiator.Default<D>
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeInstantiatorProvider
PersistenceTypeInstantiatorProvider.Default<D>, PersistenceTypeInstantiatorProvider.Mapped<D>
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description <T> T
instantiate(Class<T> type, D data)
<T> PersistenceTypeInstantiator<D,T>
provideTypeInstantiator(Class<T> type)
-
-
-
Method Detail
-
instantiate
public <T> T instantiate(Class<T> type, D data) throws InstantiationRuntimeException
- Specified by:
instantiate
in interfacePersistenceInstantiator<D>
- Throws:
InstantiationRuntimeException
-
provideTypeInstantiator
public <T> PersistenceTypeInstantiator<D,T> provideTypeInstantiator(Class<T> type)
- Specified by:
provideTypeInstantiator
in interfacePersistenceTypeInstantiatorProvider<D>
-
-