Interface LazyCreationService.InitializationStrategy
-
- Enclosing interface:
- LazyCreationService
public static interface LazyCreationService.InitializationStrategy
Strategy to initialize the resource, if that's a resource intensive task that should be separated fromLazyCreationService.CreationStrategy
.
-
-
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. AResourceResolver.commit()
should not be done - that's done by theLazyCreationService
.- 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
-
-