|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.naming.config.Config.Context
public static final class Config.Context
Configuration for a Context. Contexts contain lists of
Config.Environment
entries and
Config.Resource
references.
Constructor Summary | |
---|---|
Config.Context()
|
Method Summary | |
---|---|
void |
addEnvironment(Config.Environment environment)
Adds an Environment configuration to the environment list. |
void |
addResource(Config.Resource resource)
Adds a Resource configuration to the resource list. |
void |
addSubContextNames(java.util.Set sortedSubcontextNameSet)
Adds the subcontext names in this Context to the input set. |
java.util.Collection |
getEnvironmentList()
Returns the environment list. |
java.lang.String |
getName()
Returns the name of this context. |
java.util.Collection |
getResourceList()
Returns the resource list. |
void |
setName(java.lang.String name)
Sets the name of this context. |
java.lang.String |
toString()
Returns a string representation of the name, environment list and resource list of this context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Config.Context()
Method Detail |
---|
public void addEnvironment(Config.Environment environment)
environment
- environment configuration to add.public void addSubContextNames(java.util.Set sortedSubcontextNameSet) throws javax.naming.InvalidNameException
sortedSubcontextNameSet
- set to be augmented with names from
this context.
javax.naming.InvalidNameException
- if the configured string name of a
Resource or Environment in this context is not a valid JNDI name.public void addResource(Config.Resource resource)
resource
- resource configuration to add.public java.util.Collection getEnvironmentList()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the namepublic java.util.Collection getResourceList()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |