|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Store
Allows selection from a number of configured Repositories. Selection criterion is passed in as a Configuration object.
Repository,
ObjectRepository,
StreamRepository| Field Summary | |
|---|---|
static String |
ROLE
|
| Method Summary | |
|---|---|
Object |
select(Object policy)
Selects a Repository configured for the given policy. |
| Methods inherited from interface org.apache.avalon.framework.service.ServiceSelector |
|---|
isSelectable, release |
| Field Detail |
|---|
static final String ROLE
| Method Detail |
|---|
Object select(Object policy)
throws ServiceException
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 ServiceSelectorpolicy - a Configuration object identifying the sought Repository
Repository
ServiceException - if no repository matches policy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||