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 |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final SessionFactoryRegistry | INSTANCE
Singleton access |
| private final NamespaceChangeListener | listener
Implementation of JNDI |
| private static final CoreMessageLogger | |
| private final ConcurrentHashMap | nameUuidXref
A cross-reference for mapping a SessionFactory name to its UUID. |
| private final ConcurrentHashMap | sessionFactoryMap
A map for mapping the UUID of a SessionFactory to the corresponding SessionFactory instance |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSessionFactory(String
The uuid under which to register the SessionFactory uuid, String The optional name under which to register the SessionFactory name, boolean Is name, if provided, also a JNDI name? isNameAlsoJndiName, SessionFactory The SessionFactory instance instance, JndiService The JNDI service, so we can register a listener if name is a JNDI name jndiService)
Deprecated
as a consequence of
Adds a SessionFactory to the registry
SessionFactory being deprecated.
|
| public void | |
| public SessionFactory | findSessionFactory(String uuid, String name)
Deprecated
as a consequence of
SessionFactory being deprecated.
|
| public SessionFactory | Returns: The SessionFactoryThe name name)
Deprecated
as a consequence of
Get a registered SessionFactory by name
SessionFactory being deprecated.
|
| public SessionFactory | |
| public boolean | |
| public void | removeSessionFactory(String
The uuid uuid, String The optional name name, boolean Is name, if provided, also a JNDI name? isNameAlsoJndiName, JndiService The JNDI service jndiService)Remove a previously added SessionFactory |
| INSTANCE | back to summary |
|---|---|
| public static final SessionFactoryRegistry INSTANCE Singleton access | |
| listener | back to summary |
|---|---|
| private final NamespaceChangeListener listener Implementation of JNDI | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| nameUuidXref | back to summary |
|---|---|
| private final ConcurrentHashMap<String, String> nameUuidXref A cross-reference for mapping a SessionFactory name to its UUID. Not all SessionFactories get named, | |
| sessionFactoryMap | back to summary |
|---|---|
| private final ConcurrentHashMap<String, SessionFactory> sessionFactoryMap A map for mapping the UUID of a SessionFactory to the corresponding SessionFactory instance | |
| SessionFactoryRegistry | back to summary |
|---|---|
| private SessionFactoryRegistry() | |
| addSessionFactory | back to summary |
|---|---|
| public void addSessionFactory(String uuid, String name, boolean isNameAlsoJndiName, SessionFactory instance, JndiService jndiService)
Deprecated as a consequence of Adds a SessionFactory to the registry
| |
| clearRegistrations | back to summary |
|---|---|
| public void clearRegistrations() | |
| findSessionFactory | back to summary |
|---|---|
| public SessionFactory findSessionFactory(String uuid, String name)
Deprecated as a consequence of | |
| getNamedSessionFactory | back to summary |
|---|---|
| public SessionFactory getNamedSessionFactory(String name)
Deprecated as a consequence of Get a registered SessionFactory by name
| |
| getSessionFactory | back to summary |
|---|---|
| public SessionFactory getSessionFactory(String uuid)
Deprecated as a consequence of | |
| hasRegistrations | back to summary |
|---|---|
| public boolean hasRegistrations() Does this registry currently contain registrations?
| |
| removeSessionFactory | back to summary |
|---|---|
| public void removeSessionFactory(String uuid, String name, boolean isNameAlsoJndiName, JndiService jndiService) Remove a previously added SessionFactory
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getObjectInstance(Object
The possibly null object containing location or reference
information that can be used in creating an object. reference, Name The name of this object relative to name, Context nameCtx,
or null if no name is specified.The context relative to which the nameCtx, Hashtable<?, ?> name
parameter is specified, or null if name is
relative to the default initial context.The possibly null environment that is used in
creating the object. environment)Implements javax. |
| ObjectFactoryImpl | back to summary |
|---|---|
| public ObjectFactoryImpl() | |
| getObjectInstance | back to summary |
|---|---|
| public Object getObjectInstance(Object reference, Name name, Context nameCtx, Hashtable<?, ?> environment) Implements javax. Doc from javax. Creates an object using the location or reference information specified.
Special requirements of this object are supplied
using
A URL context factory is a special ObjectFactory that
creates contexts for resolving URLs or objects whose locations
are specified by URLs. The
The
Name and Context Parameters.
The
| |