@ConsumerType public interface SlingRepositoryInitializer
SlingRepositoryInitializerservices are called before making the
SlingRepositoryservice available, and can perform initializations on it, like creating service users, setting up initial access control, migrating content in upgrades, etc. The
SlingRepositoryInitializerservices 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.
void processRepository(SlingRepository repo) throws Exception
repo- the repository to process
Exception- If anything happens that should prevent the SlingRepository service from being registered.
Copyright © 2017 The Apache Software Foundation. All rights reserved.