|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@SPI(status=Stable,
useRestriction=Public)
public interface IRepositoryProvider
This SPI allows to implement IRepositoryProvider which provides an access layer
for arbitrary repository technologies.
IRepositoryProvider Represents a provider for a specific repository
technology.IRepositoryInstance Represents one instance of a specific repository.IRepositoryService Represents a service on the specific repository
instance.IRepositoryProvider is loaded as part of the SPI contract.
A IRepositoryInstance is usually located via a distinct URL or jndiName and is
created and destroyed at runtime using the following methods:
A IRepositoryService usually represents a session on the
IRepositoryInstance and contains all methods needed for repository operations.
getDefaultConfigurations() the repository
instances are created after the provider is loaded.
| Nested Class Summary | |
|---|---|
static interface |
IRepositoryProvider.Factory
Factory for IRepositoryProvider. |
| Method Summary | |
|---|---|
IRepositoryInstance |
createInstance(IRepositoryConfiguration configuration,
String partitionId)
This is used to create a IRepositoryInstance. |
void |
destroyInstance(IRepositoryInstance instance)
This is called when a IRepositoryInstance is destroyed and should cleanup
the used resources. |
List<IRepositoryConfiguration> |
getDefaultConfigurations()
Optionally configurations that should be used to create repository instances after the provider has loaded can be specified. |
String |
getProviderId()
|
IRepositoryProviderInfo |
getProviderInfo()
|
| Method Detail |
|---|
String getProviderId()
List<IRepositoryConfiguration> getDefaultConfigurations()
IRepositoryInstance createInstance(IRepositoryConfiguration configuration,
String partitionId)
IRepositoryInstance.
configuration - The configuration for the instance.partitionId - The partition on which the instance is used.
void destroyInstance(IRepositoryInstance instance)
IRepositoryInstance is destroyed and should cleanup
the used resources.
instance - The instance to be destroyed.IRepositoryProviderInfo getProviderInfo()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||