Package org.exoplatform.services.naming
Class InitialContextInitializer
java.lang.Object
org.exoplatform.services.naming.InitialContextInitializer
Created by The eXo Platform SAS
Initializer for Context.INITIAL_CONTEXT_FACTORY
Initializer for Context.INITIAL_CONTEXT_FACTORY
- Version:
- $Id: InitialContextInitializer.java 9867 2006-10-30 08:01:12Z geaz $
- Author:
- Gennady Azarenkov
- eXo level API
- Experimental
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(org.exoplatform.container.component.ComponentPlugin plugin) Returns InitialContextBinder.static voidinitialize(String name, Reference reference) voidrecall()Deprecated.org.exoplatform.container.component.ComponentPluginremovePlugin(String name)
-
Field Details
-
PROPERTIES_DEFAULT
- See Also:
-
PROPERTIES_MANDATORY
- See Also:
-
OVERLOAD_CONTEXT_FACTORY
This parameter is used to overload the default initial context factory in order to ensure that binded objects are shared- See Also:
-
BINDINGS_STORE_PATH
- See Also:
-
DEFAULT_BINDING_STORE_PATH
-
-
Constructor Details
-
InitialContextInitializer
public InitialContextInitializer(org.exoplatform.container.xml.InitParams params) throws NamingException, org.exoplatform.container.configuration.ConfigurationException, FileNotFoundException, XMLStreamException - Parameters:
params-- Throws:
NamingExceptionorg.exoplatform.container.configuration.ConfigurationException- if no context factory initialized and no context-factory nor default-context-factory configuredXMLStreamException- if error of serialized bindings readFileNotFoundException- if cannot open file with serialized bindings
-
-
Method Details
-
recall
Deprecated.Patch for case when bound objects are not shared i.e. there are some parts of app using different copy of Context, for example per web app InitialContext in Tomcat -
addPlugin
public void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin) -
removePlugin
-
getPlugins
-
getDefaultContextFactory
- Returns:
- defaultContextFactory name
-
getInitialContext
- Returns:
- stored InitialContext
-
initialize
public static void initialize(String name, Reference reference) throws NamingException, FileNotFoundException, XMLStreamException -
getInitialContextBinder
Returns InitialContextBinder.
-