Class RegistryCachingHandler

java.lang.Object
org.wso2.carbon.registry.core.jdbc.handlers.Handler
org.wso2.carbon.mediation.library.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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final org.apache.commons.logging.Log
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(org.wso2.carbon.registry.core.jdbc.handlers.RequestContext requestContext)
    Clear cache when resource deleted in registry.
    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.
    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • RegistryCachingHandler

      public RegistryCachingHandler()
  • Method Details

    • 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