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 String
CONFIG_REGISTRY_PATH
static String
CONFIG_REGISTRY_PREFIX
static String
GOV_REGISTRY_PATH
static String
GOV_REGISTRY_PREFIX
static org.apache.commons.logging.Log
log
-
Constructor Summary
Constructors Constructor Description RegistryCachingHandler()
-
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
-
-
-
-
Field Detail
-
log
public static final org.apache.commons.logging.Log log
-
GOV_REGISTRY_PATH
public static final String GOV_REGISTRY_PATH
- See Also:
- Constant Field Values
-
GOV_REGISTRY_PREFIX
public static final String GOV_REGISTRY_PREFIX
- See Also:
- Constant Field Values
-
CONFIG_REGISTRY_PATH
public static final String CONFIG_REGISTRY_PATH
- See Also:
- Constant Field Values
-
CONFIG_REGISTRY_PREFIX
public static final String CONFIG_REGISTRY_PREFIX
- See Also:
- Constant Field Values
-
-
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 classorg.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 classorg.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 classorg.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 classorg.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
-
-