Package org.silverpeas.core.jcr
Class RepositoryProvider
- java.lang.Object
-
- org.silverpeas.core.jcr.RepositoryProvider
-
@Provider public class RepositoryProvider extends Object
A provider of JCR instances. It aims to provide, through the IoC mechanism, theRepositoryobject through which Silverpeas access the JCR. For doing, theRepositoryProviderinstance delegates the getting of such a repository to aRepositoryFactoryobject it gets through the Java Service Provider interface. So, and because it could have more than one such a factory, it selects the correct one by passing some parameters the factory implementation has to understand and to satisfy in order to create the correspondingRepository. The parameters and defined in aRepositorySettingsinstance.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description RepositoryProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RepositoryProviderget()Gets an instance of theRepositoryProvider.SilverpeasRepositorygetRepository()
-
-
-
Method Detail
-
get
public static RepositoryProvider get()
Gets an instance of theRepositoryProvider.- Returns:
- a
RepositoryProviderinstance.
-
getRepository
@Produces public SilverpeasRepository getRepository()
-
-