|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectledge.naming.ContextFactory
public class ContextFactory
Naming context factory component.
| Field Summary | |
|---|---|
private Map |
alias
Context aliases. |
private Map |
context
Cached contexts. |
private Map |
initial
Initial environments. |
private org.jcontainer.dna.Logger |
logger
the logger |
| Constructor Summary | |
|---|---|
ContextFactory(org.picocontainer.PicoContainer container,
org.jcontainer.dna.Configuration config,
org.jcontainer.dna.Logger logger)
Component constructor. |
|
| Method Summary | |
|---|---|
Context |
getContext(String name)
Returns the specified naming context. |
DirContext |
getDirContext(String name)
Returns the specified directory context. |
void |
reconnect(String name)
Requests that the cached context object be discarded and created anew. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.jcontainer.dna.Logger logger
private Map initial
private Map alias
private Map context
| Constructor Detail |
|---|
public ContextFactory(org.picocontainer.PicoContainer container,
org.jcontainer.dna.Configuration config,
org.jcontainer.dna.Logger logger)
throws org.jcontainer.dna.ConfigurationException
container - the container to resolve component properties from.config - the configuration.logger - the logger.
org.jcontainer.dna.ConfigurationException - if the component's configuration is invalid.| Method Detail |
|---|
public Context getContext(String name)
throws NamingException
name - the context identifier used in the configuration file.
NamingException - if identifier cannot be resolved.
public DirContext getDirContext(String name)
throws NamingException
name - the directory context identifier used in the configuration file
NamingExceptionpublic void reconnect(String name)
This method is helpful for recovering from teporary failures of external naming/directory services.
name - the name of the context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||