public final class ConfigProperties extends Object implements Serializable, Cloneable
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.
".Modifier and Type | Class and Description |
---|---|
static class |
ConfigProperties.Property
The
Property class represents a single property. |
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(ConfigProperties.Property property)
Add a property to this
ConfigProperties object. |
Object |
clone()
Creates and returns a deep copy of this
ConfigProperties object. |
ConfigProperties.Property[] |
getProperties()
Get all properties.
|
ConfigProperties.Property |
getProperty(String name)
Get the property with the specified name.
|
String |
toString()
Get a string representation for this
ConfigProperties object. |
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.NullPointerException
- if properties
is null
or containes null elements.public ConfigProperties.Property[] getProperties()
ConfigProperties.Property
objects.public ConfigProperties.Property getProperty(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.NullPointerException
- if property
is null
.IllegalArgumentException
- if a property with the same name already
exists.public String toString()
ConfigProperties
object.public 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.