SessionFactory instances during JNDI look-ups as well as during deserialization
| Modifier and Type | Field and Description |
|---|---|
| private static final SessionFactoryObjectFactory | |
| private static final ConcurrentHashMap | |
| private static final NamingListener | |
| private static final Logger | |
| private static final ConcurrentHashMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static Object | |
| public static Object | |
| 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 ctx, Hashtable<K, V> 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. env)Implements javax. |
| public static void |
| INSTANCE | back to summary |
|---|---|
private static final SessionFactoryObjectFactory INSTANCE
| |
| INSTANCES | back to summary |
|---|---|
| private static final ConcurrentHashMap<String, SessionFactory> INSTANCES | |
| LISTENER | back to summary |
|---|---|
| private static final NamingListener LISTENER | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| NAMED_INSTANCES | back to summary |
|---|---|
| private static final ConcurrentHashMap<String, SessionFactory> NAMED_INSTANCES | |
| SessionFactoryObjectFactory | back to summary |
|---|---|
| public SessionFactoryObjectFactory() | |
| addInstance | back to summary |
|---|---|
| public static void addInstance(String uid, String name, SessionFactory instance, Properties properties) | |
| getInstance | back to summary |
|---|---|
| public static Object getInstance(String uid) | |
| getNamedInstance | back to summary |
|---|---|
| public static Object getNamedInstance(String name) | |
| getObjectInstance | back to summary |
|---|---|
| public Object getObjectInstance(Object reference, Name name, Context ctx, Hashtable<K, V> env) throws Exception 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
| |
| removeInstance | back to summary |
|---|---|
| public static void removeInstance(String uid, String name, Properties properties) | |