public interface Store
extends org.apache.avalon.framework.service.ServiceSelector
Repository,
ObjectRepository,
StreamRepositoryjava.lang.Object select(java.lang.Object policy)
throws org.apache.avalon.framework.service.ServiceException
org.apache.avalon.framework.configuration.Configuration.
The following attributes are used by the Store and thus are mandatory
in the policy parameter:
<repository destinationURL="[URL of this repository]"
type="[repository type e.g. OBJECT, STREAM or MAIL]"
model="[repository model e.g. PERSISTENT, CACHE]">
[additional configuration]
</repository>
The policy is used both to select the appropriate Repository and to configure it.
select in interface org.apache.avalon.framework.service.ServiceSelectorpolicy - a org.apache.avalon.framework.configuration.Configuration object identifying the sought RepositoryRepositoryorg.apache.avalon.framework.service.ServiceException - if no repository matches policy