Package org.apache.sling.jcr.api
Interface SlingRepositoryInitializer
- 
public interface SlingRepositoryInitializerAll activeSlingRepositoryInitializerservices are called before making theSlingRepositoryservice available, and can perform initializations on it, like creating service users, setting up initial access control, migrating content in upgrades, etc. TheSlingRepositoryInitializerservices need to be aware of any repository clustering scenarios as well as multiple Sling instances accessing the same repository. They might need to implement locking to avoid conflicts. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprocessRepository(SlingRepository repo)Process the content repository before it is registered as an OSGi service. 
 - 
 
- 
- 
Method Detail
- 
processRepository
void processRepository(SlingRepository repo) throws java.lang.Exception
Process the content repository before it is registered as an OSGi service.- Parameters:
 repo- the repository to process- Throws:
 java.lang.Exception- If anything happens that should prevent the SlingRepository service from being registered.
 
 - 
 
 -