Class InitialContextInitializer


  • public class InitialContextInitializer
    extends Object
    Created by The eXo Platform SAS
    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 Detail

      • OVERLOAD_CONTEXT_FACTORY

        public static final String 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:
        Constant Field Values
      • DEFAULT_BINDING_STORE_PATH

        public static final String DEFAULT_BINDING_STORE_PATH
    • Constructor Detail

      • InitialContextInitializer

        public InitialContextInitializer​(org.exoplatform.container.xml.InitParams params)
                                  throws NamingException,
                                         org.exoplatform.container.configuration.ConfigurationException,
                                         FileNotFoundException,
                                         XMLStreamException
        Parameters:
        params -
        Throws:
        NamingException
        org.exoplatform.container.configuration.ConfigurationException - if no context factory initialized and no context-factory nor default-context-factory configured
        XMLStreamException - if error of serialized bindings read
        FileNotFoundException - if cannot open file with serialized bindings
    • Method Detail

      • recall

        @Deprecated
        public void 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

        public org.exoplatform.container.component.ComponentPlugin removePlugin​(String name)
      • getDefaultContextFactory

        public String getDefaultContextFactory()
        Returns:
        defaultContextFactory name
      • getInitialContext

        public InitialContext getInitialContext()
        Returns:
        stored InitialContext
      • getInitialContextBinder

        public InitialContextBinder getInitialContextBinder()
        Returns InitialContextBinder.