|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.naming.config.Config.Environment
public static final class Config.Environment
Configuration for an Environment entry. Environment entries represent JNDI environment properties that take values that are primitive java types. The Environment configuration includes the type, the value and the JNDI name as a string, relative to the initial context.
Constructor Summary | |
---|---|
Config.Environment()
|
Method Summary | |
---|---|
java.lang.Object |
createValue()
Tries to create an instance of type this.type using
this.value . |
java.lang.String |
getName()
Gets the name of this environment. |
java.lang.String |
getType()
Returns the class name of this environment entry. |
java.lang.String |
getValue()
Returns the value of this environment entry as a String. |
void |
setName(java.lang.String name)
Sets the name of this environment. |
void |
setType(java.lang.String type)
Sets the class name of this environment entry. |
void |
setValue(java.lang.String value)
Sets the (String) value of this environment entry. |
java.lang.String |
toString()
Returns the JNDI name, type and value of this environment entry as as String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Config.Environment()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the namepublic java.lang.String getType()
public void setType(java.lang.String type)
type
- class namepublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object createValue()
this.type
using
this.value
.
Only primitive types are currently supported. Wrapper object
valueOf
methods are used and runtime exceptions
are not handled. If this.type
is not a primitive type,
null
is returned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |