|
|||||||||||
| 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 Configurableconfiguration - the configuration for this componentpublic void initialize(Component thisComponent)
Initializable
initialize in interface InitializablethisComponent - 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 InitialContextFactoryNamingException - this is also logged at the info level
public InitialContext getContext(Map givenEnvironment)
throws NamingException
getContext in interface InitialContextFactorygivenEnvironment - values that augment and/or override the values
stored in configuration
NamingException - this is also logged at the info level
public InitialContext getContextIgnoreConfig(Map givenEnvironment)
throws NamingException
getContextIgnoreConfig in interface InitialContextFactorygivenEnvironment - values used to construct the InitialContext
NamingException - this is also logged at the info level
public InitialDirContext getDirContext()
throws NamingException
getDirContext in interface InitialContextFactoryNamingException
public InitialDirContext getDirContext(Map givenEnvironment)
throws NamingException
getDirContext in interface InitialContextFactorygivenEnvironment - values that augment and/or override the values
stored in configuration
NamingException
public InitialDirContext getDirContextIgnoreConfig(Map givenEnvironment)
throws NamingException
getDirContextIgnoreConfig in interface InitialContextFactorygivenEnvironment - values used to construct the InitialContext
NamingException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||