public class SessionFactoryRegistry extends Object
SessionFactory
instances for the same classloader as this class.
This registry is used for serialization/deserialization as well as JNDI binding.Modifier and Type | Class and Description |
---|---|
static class |
SessionFactoryRegistry.ObjectFactoryImpl |
Modifier and Type | Field and Description |
---|---|
static SessionFactoryRegistry |
INSTANCE |
Constructor and Description |
---|
SessionFactoryRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addSessionFactory(String uuid,
String name,
boolean isNameAlsoJndiName,
SessionFactory instance,
JndiService jndiService) |
SessionFactory |
getNamedSessionFactory(String name) |
SessionFactory |
getSessionFactory(String uuid) |
void |
removeSessionFactory(String uuid,
String name,
boolean isNameAlsoJndiName,
JndiService jndiService) |
public static final SessionFactoryRegistry INSTANCE
public void addSessionFactory(String uuid, String name, boolean isNameAlsoJndiName, SessionFactory instance, JndiService jndiService)
public void removeSessionFactory(String uuid, String name, boolean isNameAlsoJndiName, JndiService jndiService)
public SessionFactory getNamedSessionFactory(String name)
public SessionFactory getSessionFactory(String uuid)
Copyright © 2018 JBoss by Red Hat. All rights reserved.