|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.naming.config.Config.Resource
Configuration for an JNDI resource reference. Resource references include the type of the resource, the parameters to be used in creating the resource instance and the JNDI name of the resource as a string, relative to the initial context.
Constructor Summary | |
Config.Resource()
|
Method Summary | |
void |
addParameter(java.lang.String name,
java.lang.String value)
Adds a name-value pair to the parameters associated with this resource. |
java.lang.Object |
createValue()
Creates a ResourceRef based on the configuration
properties of this resource. |
java.lang.String |
getName()
Returns the name of this resource. |
java.util.Map |
getParameters()
Returns the parameters associated with this resource as a Map. |
java.lang.String |
getType()
Returns the type of this resource. |
void |
setName(java.lang.String name)
Sets the name of this resource. |
void |
setType(java.lang.String type)
Sets the type of this resource. |
java.lang.String |
toString()
Returns the name, type and parameter list as a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Config.Resource()
Method Detail |
public void addParameter(java.lang.String name, java.lang.String value)
name
- parameter namevalue
- parameter valuepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- name.public java.util.Map getParameters()
public java.lang.String getType()
public void setType(java.lang.String type)
type
- class name.public java.lang.Object createValue()
ResourceRef
based on the configuration
properties of this resource.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |