Interface LazyCreationService.InitializationStrategy

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void initialize​(org.apache.sling.api.resource.ResourceResolver resolver, org.apache.sling.api.resource.Resource resource)
      Initializes the resource.
    • Method Detail

      • initialize

        void initialize​(org.apache.sling.api.resource.ResourceResolver resolver,
                        org.apache.sling.api.resource.Resource resource)
                 throws javax.jcr.RepositoryException,
                        org.apache.sling.api.resource.PersistenceException
        Initializes the resource. A ResourceResolver.commit() should not be done - that's done by the LazyCreationService.
        Parameters:
        resolver - the admin-resolver - can be used if child resources need to be created etc.
        resource - the resource to initialize
        Throws:
        javax.jcr.RepositoryException
        org.apache.sling.api.resource.PersistenceException