|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.services.jndi.DefaultInitialContextFactoryImpl
Default implementation of InitialContextFactory
Copyright 2003 Sapient
Field Summary | |
protected Hashtable |
environment
|
private org.apache.commons.logging.Log |
log
|
Constructor Summary | |
DefaultInitialContextFactoryImpl()
|
Method Summary | |
void |
configure(ComponentConfiguration configuration)
Configure the component. |
InitialContext |
getContext()
Gets a new InitialContext instance with evironment values that come from the service's configuration. |
InitialContext |
getContext(Map givenEnvironment)
Gets a new InitialContext instance with evironment values that come from the service's configuration, but environment values can also be passed via the environment parameter to augment or override the values stored in configuration. |
InitialContext |
getContextIgnoreConfig(Map givenEnvironment)
Gets a new InitialContext with environment values given in the evironment parameter. |
InitialDirContext |
getDirContext()
Gets a new InitialDirContext instance with evironment values that come from the service's configuration. |
InitialDirContext |
getDirContext(Map givenEnvironment)
Gets a new InitialDirContext instance with evironment values that come from the service's configuration, but environment values can also be passed via the environment parameter to augment or override the values stored in configuration. |
InitialDirContext |
getDirContextIgnoreConfig(Map givenEnvironment)
Gets a new InitialDirContext with environment values given in the evironment parameter. |
void |
initialize(Component thisComponent)
Initialize the component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.apache.commons.logging.Log log
protected Hashtable environment
Constructor Detail |
public DefaultInitialContextFactoryImpl()
Method Detail |
public void configure(ComponentConfiguration configuration)
Configurable
configure
in interface Configurable
configuration
- the configuration for this componentpublic void initialize(Component thisComponent)
Initializable
initialize
in interface Initializable
thisComponent
- the reference to the component that this object
is a part of. Store this referece within your Functional Implementation
for future use.public InitialContext getContext() throws NamingException
getContext
in interface InitialContextFactory
NamingException
- this is also logged at the info levelpublic InitialContext getContext(Map givenEnvironment) throws NamingException
getContext
in interface InitialContextFactory
givenEnvironment
- values that augment and/or override the values
stored in configuration
NamingException
- this is also logged at the info levelpublic InitialContext getContextIgnoreConfig(Map givenEnvironment) throws NamingException
getContextIgnoreConfig
in interface InitialContextFactory
givenEnvironment
- values used to construct the InitialContext
NamingException
- this is also logged at the info levelpublic InitialDirContext getDirContext() throws NamingException
getDirContext
in interface InitialContextFactory
NamingException
public InitialDirContext getDirContext(Map givenEnvironment) throws NamingException
getDirContext
in interface InitialContextFactory
givenEnvironment
- values that augment and/or override the values
stored in configuration
NamingException
public InitialDirContext getDirContextIgnoreConfig(Map givenEnvironment) throws NamingException
getDirContextIgnoreConfig
in interface InitialContextFactory
givenEnvironment
- values used to construct the InitialContext
NamingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |