org.hibernate.impl
Class SessionFactoryObjectFactory
java.lang.Object
org.hibernate.impl.SessionFactoryObjectFactory
- All Implemented Interfaces:
- ObjectFactory
public class SessionFactoryObjectFactory
- extends Object
- implements ObjectFactory
Resolves SessionFactory JNDI lookups and deserialization
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionFactoryObjectFactory
public SessionFactoryObjectFactory()
getObjectInstance
public Object getObjectInstance(Object reference,
Name name,
Context ctx,
Hashtable env)
throws Exception
- Specified by:
getObjectInstance
in interface ObjectFactory
- Throws:
Exception
addInstance
public static void addInstance(String uid,
String name,
SessionFactory instance,
Properties properties)
removeInstance
public static void removeInstance(String uid,
String name,
Properties properties)
getNamedInstance
public static Object getNamedInstance(String name)
getInstance
public static Object getInstance(String uid)
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.