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, theRepository
object through which Silverpeas access the JCR. For doing, theRepositoryProvider
instance delegates the getting of such a repository to aRepositoryFactory
object 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 aRepositorySettings
instance.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description RepositoryProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RepositoryProvider
get()
Gets an instance of theRepositoryProvider
.SilverpeasRepository
getRepository()
-
-
-
Method Detail
-
get
public static RepositoryProvider get()
Gets an instance of theRepositoryProvider
.- Returns:
- a
RepositoryProvider
instance.
-
getRepository
@Produces public SilverpeasRepository getRepository()
-
-