org.hibernate.search.engine.impl
Class HibernateStatelessInitializer
java.lang.Object
org.hibernate.search.engine.impl.HibernateStatelessInitializer
- All Implemented Interfaces:
- InstanceInitializer
- Direct Known Subclasses:
- HibernateSessionLoadingInitializer
public class HibernateStatelessInitializer
- extends Object
- implements InstanceInitializer
To be used for Hibernate initializations which don't need a specific Session.
initializeCollection(Collection) and initializeMap(Map)
are not supported.
- Author:
- Sanne Grinovero (C) 2011 Red Hat Inc.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final HibernateStatelessInitializer INSTANCE
HibernateStatelessInitializer
protected HibernateStatelessInitializer()
getClass
public <T> Class<T> getClass(T entity)
- Specified by:
getClass in interface InstanceInitializer
unproxy
public Object unproxy(Object instance)
- Specified by:
unproxy in interface InstanceInitializer
initializeCollection
public <T> Collection<T> initializeCollection(Collection<T> value)
- Specified by:
initializeCollection in interface InstanceInitializer
initializeMap
public <K,V> Map<K,V> initializeMap(Map<K,V> value)
- Specified by:
initializeMap in interface InstanceInitializer
initializeArray
public Object[] initializeArray(Object[] value)
- Specified by:
initializeArray in interface InstanceInitializer
getClassFromWork
public <T> Class<T> getClassFromWork(Work<T> work)
- Specified by:
getClassFromWork in interface InstanceInitializer
Copyright © 2006–2013 Hibernate. All rights reserved.