PropertySetRepository is an interface to be implemented by any part of the system that manages its own PropertySets. The PropertySetManager will maintain a mapping of property set types to property set repositories so that the appropriate repository will be queried when a PropertySet is requested.
To define a property set type to repository class mapping, create an entry in the PropertySetManager's deployment descriptor that follows this pattern:
<env-entry> <env-entry-name>repository/USER</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>com.bea.p13n.property.internal.PropertySetRepositoryImpl</env-entry-value> </env-entry>
This example maps the USER property set type to the default implementation of the PropertySetRepository interface.
Related Topics
PropertySetRepositoryImpl
, PropertySetRepositoryImpl
Method Summary |
public boolean |
|
public void |
|
public |
|
public |
|
public |
|
public void |
|
Method Detail |
public boolean addPropertySet(Add a PropertySet to the repository. If an implementation does not support this, an UnsupportedOperationException will be thrown. (some implementations may be read-only)String
name,PropertySet
propertySet)
throwsUnsupportedOperationException
UnsupportedOperationException
public void clear()Remove all PropertySets from the repository. If an implementation does not support this, an UnsupportedOperationException will be thrown. (some implementations may be read-only)
throwsUnsupportedOperationException
UnsupportedOperationException
publicRetrieve the given PropertySetPropertySet
getPropertySet(String
name)
public String
[] getPropertySetNames()
Retrieve a list of names of all PropertySet objects in this repository
public Map
getPropertySets()
Retrieve all PropertySet objects in this repository
public void removePropertySet(Remove a PropertySet from the repository. If an implementation does not support this, an UnsupportedOperationException will be thrown. (some implementations may be read-only)String
name)
throwsUnsupportedOperationException
UnsupportedOperationException