com.solarmetric.modules.jndi
Class ContextFactory
java.lang.Object
|
+--com.solarmetric.modules.jndi.ContextFactory
- public class ContextFactory
- extends Object
The ContextFactory gives application components a
static interface to the ContextProvider in use, as specified
by the context-provider property (named in the System properties
or in the preferences file). If no such property exists, the default
behavior is to return a new InitialContext, relying on the standard
JNDI configuration for proper context initialization.
If supplied, a concrete ContextProvider must have a no-args constructor.
It will be instantiated once and cached for repeated use.
Method Summary |
static Context |
getContext()
This method returns an instance of a Context by delegating
the work to the cached ContextProvider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextFactory
public ContextFactory()
getContext
public static Context getContext()
- This method returns an instance of a Context by delegating
the work to the cached ContextProvider.
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.