|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.slee.resource.ConfigProperties
public final class ConfigProperties
The ConfigProperties class represents a set of configuration properties
for a Resource Adaptor or resource adaptor entity.
Configuration properties that start with "javax.slee:" are reserved for
use by the SLEE specification. The following standard configuration properties are defined
by the specification and may be used by resource adaptors:
javax.slee:name - a java.lang.String that identifies the
name of the SLEE implementation.
javax.slee:vendor - a java.lang.String that identifies the
vendor of the SLEE implementation.
javax.slee:version - a java.lang.String that identifies the
version of the SLEE implementation.
slee-vendor:"
and the configuration property name should utilize Java package name conventions. For example,
properties from a SLEE vendor "mycompany" should be prefixed with "slee-vendor:com.mycompany.".
| Nested Class Summary | |
|---|---|
static class |
ConfigProperties.Property
The Property class represents a single property. |
| Constructor Summary | |
|---|---|
ConfigProperties()
Create a new ConfigProperties object with an initially empty set of properties. |
|
ConfigProperties(ConfigProperties.Property[] properties)
Create a new ConfigProperties object prepopulated with a set of properties. |
|
| Method Summary | |
|---|---|
void |
addProperty(ConfigProperties.Property property)
Add a property to this ConfigProperties object. |
java.lang.Object |
clone()
Creates and returns a deep copy of this ConfigProperties object. |
ConfigProperties.Property[] |
getProperties()
Get all properties. |
ConfigProperties.Property |
getProperty(java.lang.String name)
Get the property with the specified name. |
java.lang.String |
toString()
Get a string representation for this ConfigProperties object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigProperties()
ConfigProperties object with an initially empty set of properties.
public ConfigProperties(ConfigProperties.Property[] properties)
ConfigProperties object prepopulated with a set of properties.
properties - the properties to add to the created ConfigProperties object.
java.lang.NullPointerException - if properties is null
or containes null elements.| Method Detail |
|---|
public ConfigProperties.Property[] getProperties()
ConfigProperties.Property objects.public ConfigProperties.Property getProperty(java.lang.String name)
name - the name of the property.
ConfigProperties.Property, or null if the property does not exist in
this ConfigProperties object.public void addProperty(ConfigProperties.Property property)
ConfigProperties object.
property - the property to add.
java.lang.NullPointerException - if property is null.
java.lang.IllegalArgumentException - if a property with the same name already
exists.public java.lang.String toString()
ConfigProperties object.
toString in class java.lang.ObjectConfigProperties object.public java.lang.Object clone()
ConfigProperties object.
Changes to the properties of the object returned from this method will not
affect the properties stored by the original object cloned.
clone in class java.lang.ObjectConfigProperties object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||