| |
|
| java.lang.Object com.sun.jbi.util.EnvironmentAccess
EnvironmentAccess | public class EnvironmentAccess (Code) | | This class provides a way for any service to obtain a reference to the
EnvironmentContext created by the framework. The reason this class is
necessary is that classes in the framework service are not directly
accessible to other services. This is provided as a convenience for
various runtime classes to have easy access to the EnvironmentContext.
author: Mark S White |
getContext | public static EnvironmentContext getContext()(Code) | | Get a reference to the EnvironmentContext.
the EnvironmentContext or null if the framework has not beeninitialized. |
setContext | public static synchronized void setContext(EnvironmentContext context)(Code) | | Set a reference to the EnvironmentContext. Note that after the first
time this is set, subsequent calls are ignored. Only the constructor
in the EnvironmentContext should call this method.
Parameters: context - the EnvironmentContext reference. |
|
|
|