eXo Kernel :: Component :: Common Service 2.4.3-CLD

org.exoplatform.services.naming
Class InitialContextInitializer

java.lang.Object
  extended by org.exoplatform.services.naming.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

Field Summary
static String BINDINGS_STORE_PATH
           
static String DEFAULT_BINDING_STORE_PATH
           
static String OVERLOAD_CONTEXT_FACTORY
          This parameter is used to overload the default initial context factory in order to ensure that binded objects are shared
static String PROPERTIES_DEFAULT
           
static String PROPERTIES_MANDATORY
           
 
Constructor Summary
InitialContextInitializer(InitParams params)
           
 
Method Summary
 void addPlugin(ComponentPlugin plugin)
           
 String getDefaultContextFactory()
           
 InitialContext getInitialContext()
           
 InitialContextBinder getInitialContextBinder()
          Returns InitialContextBinder.
 Collection getPlugins()
           
static void initialize(String name, Reference reference)
           
 void recall()
          Deprecated. 
 ComponentPlugin removePlugin(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTIES_DEFAULT

public static final String PROPERTIES_DEFAULT
See Also:
Constant Field Values

PROPERTIES_MANDATORY

public static final String PROPERTIES_MANDATORY
See Also:
Constant Field Values

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

BINDINGS_STORE_PATH

public static final String BINDINGS_STORE_PATH
See Also:
Constant Field Values

DEFAULT_BINDING_STORE_PATH

public static final String DEFAULT_BINDING_STORE_PATH
Constructor Detail

InitialContextInitializer

public InitialContextInitializer(InitParams params)
                          throws NamingException,
                                 ConfigurationException,
                                 FileNotFoundException,
                                 XMLStreamException
Parameters:
params -
Throws:
NamingException
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(ComponentPlugin plugin)

removePlugin

public ComponentPlugin removePlugin(String name)

getPlugins

public Collection getPlugins()

getDefaultContextFactory

public String getDefaultContextFactory()
Returns:
defaultContextFactory name

getInitialContext

public InitialContext getInitialContext()
Returns:
stored InitialContext

initialize

public static void initialize(String name,
                              Reference reference)
                       throws NamingException,
                              FileNotFoundException,
                              XMLStreamException
Throws:
NamingException
FileNotFoundException
XMLStreamException

getInitialContextBinder

public InitialContextBinder getInitialContextBinder()
Returns InitialContextBinder.


eXo Kernel :: Component :: Common Service 2.4.3-CLD

Copyright © 2013 eXo Platform SAS. All Rights Reserved.