@SPI(status=Stable,
useRestriction=Public)
public interface IRepositoryProvider
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.| Modifier and Type | Interface and Description |
|---|---|
static interface |
IRepositoryProvider.Factory
Factory for
IRepositoryProvider. |
| Modifier and Type | Method and Description |
|---|---|
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() |
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()
Copyright © 2016 Eclipse Stardust. All Rights Reserved.