public final class SimpleInitializer extends Object implements InstanceInitializer
InstanceInitializer
.Modifier and Type | Field and Description |
---|---|
static SimpleInitializer |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
<T> Class<T> |
getClass(T entity) |
Class<?> |
getClassFromWork(Work work) |
Object[] |
initializeArray(Object[] value) |
<T> Collection<T> |
initializeCollection(Collection<T> value) |
<K,V> Map<K,V> |
initializeMap(Map<K,V> value) |
Object |
unproxy(Object entity) |
public static final SimpleInitializer INSTANCE
public Object unproxy(Object entity)
unproxy
in interface InstanceInitializer
entity
- the object to unproxypublic Class<?> getClassFromWork(Work work)
getClassFromWork
in interface InstanceInitializer
public <T> Class<T> getClass(T entity)
getClass
in interface InstanceInitializer
T
- the type of the entityentity
- an instance or proxy of Tpublic <T> Collection<T> initializeCollection(Collection<T> value)
initializeCollection
in interface InstanceInitializer
T
- the type of the elements in the collectionvalue
- the collection to initializepublic <K,V> Map<K,V> initializeMap(Map<K,V> value)
initializeMap
in interface InstanceInitializer
K
- keyV
- valuevalue
- the map to initializepublic Object[] initializeArray(Object[] value)
initializeArray
in interface InstanceInitializer
value
- the array to initializeCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved