Interface LazyCreationService.RetrievalStrategy<T>

  • Enclosing interface:
    LazyCreationService

    public static interface LazyCreationService.RetrievalStrategy<T>
    Strategy to retrieve the resources content.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T get​(org.apache.sling.api.resource.ResourceResolver resolver, String path)
      Side effect free function to retrieve whatever we want to retrieve.
    • Method Detail

      • get

        T get​(org.apache.sling.api.resource.ResourceResolver resolver,
              String path)
        throws javax.jcr.RepositoryException
        Side effect free function to retrieve whatever we want to retrieve. Important is that it has no sideeffects as long as it returns null, since is might be called several times.
        Parameters:
        resolver - the users resolver, if needed here.
        path - path at which we expect it, if needed here.
        Returns:
        null if it doesn't exist yet.
        Throws:
        javax.jcr.RepositoryException