@Reference(name="namespaceMapper",
referenceInterface=org.apache.sling.jcr.api.NamespaceMapper.class,
cardinality=OPTIONAL_MULTIPLE,
policy=DYNAMIC)
@Properties(value={@Property(name="service.vendor",value="The Apache Software Foundation"),@Property(name="service.description",value="Factory for embedded Jackrabbit Repository Instances")})
public class SlingServerRepositoryManager
extends org.apache.sling.jcr.base.AbstractSlingRepositoryManager
SlingServerRepository creates and configures Jackrabbit repository instances.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ADMIN_USER |
static boolean |
DEFAULT_LOGIN_ADMIN_ENABLED |
static String |
PROPERTY_ADMIN_USER |
static String |
PROPERTY_DEFAULT_WORKSPACE |
static String |
PROPERTY_LOGIN_ADMIN_ENABLED |
static String |
REPOSITORY_CONFIG_URL
The name of the configuration property defining the URL to the repository
configuration file (value is "config").
|
static String |
REPOSITORY_HOME_DIR
The name of the configuration property defining the file system directory
where the repository files are located (value is "home").
|
static String |
REPOSITORY_REGISTRATION_NAME |
| Constructor and Description |
|---|
SlingServerRepositoryManager() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.jcr.Repository |
acquireRepository() |
protected org.apache.sling.jcr.base.AbstractSlingRepository2 |
create(org.osgi.framework.Bundle usingBundle) |
protected void |
destroy(org.apache.sling.jcr.base.AbstractSlingRepository2 repositoryServiceInstance) |
protected void |
disposeRepository(javax.jcr.Repository repository) |
protected org.osgi.service.component.ComponentContext |
getComponentContext() |
protected org.apache.sling.jcr.api.NamespaceMapper[] |
getNamespaceMapperServices() |
protected String[] |
getServiceRegistrationInterfaces()
Returns the Jackrabbit
RepositoryManager interface implemented by
the Jackrabbit Repository in addition to the SlingRepository and
Repository interfaces implemented by the base class. |
protected Dictionary<String,Object> |
getServiceRegistrationProperties() |
protected org.apache.sling.serviceusermapping.ServiceUserMapper |
getServiceUserMapper() |
getDefaultWorkspace, getRepository, isDisableLoginAdministrative, registerService, start, stop, unregisterService@Property(value="") public static final String REPOSITORY_CONFIG_URL
If the configuration file is located in the local file system, the "file:" scheme must still be specified.
This parameter is mandatory for this activator to start the repository.
@Property(value="") public static final String REPOSITORY_HOME_DIR
This parameter is mandatory for this activator to start the repository.
@Property(value="") public static final String REPOSITORY_REGISTRATION_NAME
public static final boolean DEFAULT_LOGIN_ADMIN_ENABLED
@Property public static final String PROPERTY_DEFAULT_WORKSPACE
@Property(boolValue=true) public static final String PROPERTY_LOGIN_ADMIN_ENABLED
public static final String DEFAULT_ADMIN_USER
@Property(value="admin") public static final String PROPERTY_ADMIN_USER
protected javax.jcr.Repository acquireRepository()
acquireRepository in class org.apache.sling.jcr.base.AbstractSlingRepositoryManagerprotected Dictionary<String,Object> getServiceRegistrationProperties()
getServiceRegistrationProperties in class org.apache.sling.jcr.base.AbstractSlingRepositoryManagerprotected String[] getServiceRegistrationInterfaces()
RepositoryManager interface implemented by
the Jackrabbit Repository in addition to the SlingRepository and
Repository interfaces implemented by the base class.getServiceRegistrationInterfaces in class org.apache.sling.jcr.base.AbstractSlingRepositoryManagerAbstractSlingRepository.registerService method.protected org.apache.sling.jcr.base.AbstractSlingRepository2 create(org.osgi.framework.Bundle usingBundle)
create in class org.apache.sling.jcr.base.AbstractSlingRepositoryManagerprotected void destroy(org.apache.sling.jcr.base.AbstractSlingRepository2 repositoryServiceInstance)
destroy in class org.apache.sling.jcr.base.AbstractSlingRepositoryManagerprotected org.apache.sling.jcr.api.NamespaceMapper[] getNamespaceMapperServices()
getNamespaceMapperServices in class org.apache.sling.jcr.base.NamespaceMappingSupportprotected org.apache.sling.serviceusermapping.ServiceUserMapper getServiceUserMapper()
getServiceUserMapper in class org.apache.sling.jcr.base.AbstractSlingRepositoryManagerprotected void disposeRepository(javax.jcr.Repository repository)
disposeRepository in class org.apache.sling.jcr.base.AbstractSlingRepositoryManagerprotected org.osgi.service.component.ComponentContext getComponentContext()
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.