Class RegistryCachingHandler


  • public class RegistryCachingHandler
    extends org.wso2.carbon.registry.core.jdbc.handlers.Handler
    Caching handler to remove resources in synapse cache when resources get update.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(org.wso2.carbon.registry.core.jdbc.handlers.RequestContext requestContext)
      Clear cache when resource deleted in registry.
      String move​(org.wso2.carbon.registry.core.jdbc.handlers.RequestContext requestContext)
      Clear cache when resource move in registry.
      void put​(org.wso2.carbon.registry.core.jdbc.handlers.RequestContext requestContext)
      Clear cache when adding new resource into the registry.
      String rename​(org.wso2.carbon.registry.core.jdbc.handlers.RequestContext requestContext)
      Clear cache when rename existing resource in registry.
      • Methods inherited from class org.wso2.carbon.registry.core.jdbc.handlers.Handler

        addAssociation, addComment, applyTag, copy, createLink, createVersion, dump, dumpLite, editComment, equals, executeQuery, get, getAllAssociations, getAssociations, getAverageRating, getComments, getRating, getRegistryContext, getResourcePathsWithTag, getTags, getVersions, hashCode, importChild, importResource, invokeAspect, putChild, rateResource, removeAssociation, removeComment, removeLink, removeTag, resourceExists, restore, restoreVersion, searchContent
    • Constructor Detail

      • RegistryCachingHandler

        public RegistryCachingHandler()
    • Method Detail

      • put

        public void put​(org.wso2.carbon.registry.core.jdbc.handlers.RequestContext requestContext)
                 throws org.wso2.carbon.registry.core.exceptions.RegistryException
        Clear cache when adding new resource into the registry.
        Overrides:
        put in class org.wso2.carbon.registry.core.jdbc.handlers.Handler
        Parameters:
        requestContext - The context of the request
        Throws:
        org.wso2.carbon.registry.core.exceptions.RegistryException - Registry caching exception
      • rename

        public String rename​(org.wso2.carbon.registry.core.jdbc.handlers.RequestContext requestContext)
                      throws org.wso2.carbon.registry.core.exceptions.RegistryException
        Clear cache when rename existing resource in registry.
        Overrides:
        rename in class org.wso2.carbon.registry.core.jdbc.handlers.Handler
        Parameters:
        requestContext - The context of the request
        Returns:
        Target path Target path for rename
        Throws:
        org.wso2.carbon.registry.core.exceptions.RegistryException - Registry caching exception
      • move

        public String move​(org.wso2.carbon.registry.core.jdbc.handlers.RequestContext requestContext)
                    throws org.wso2.carbon.registry.core.exceptions.RegistryException
        Clear cache when resource move in registry.
        Overrides:
        move in class org.wso2.carbon.registry.core.jdbc.handlers.Handler
        Parameters:
        requestContext - The context of the request
        Returns:
        Target path Target path to move file
        Throws:
        org.wso2.carbon.registry.core.exceptions.RegistryException - Registry caching exception
      • delete

        public void delete​(org.wso2.carbon.registry.core.jdbc.handlers.RequestContext requestContext)
                    throws org.wso2.carbon.registry.core.exceptions.RegistryException
        Clear cache when resource deleted in registry.
        Overrides:
        delete in class org.wso2.carbon.registry.core.jdbc.handlers.Handler
        Parameters:
        requestContext - The context of the request
        Throws:
        org.wso2.carbon.registry.core.exceptions.RegistryException - Registry caching exception