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.HandlerCaching handler to remove resources in synapse cache when resources get update.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_REGISTRY_PATHstatic StringCONFIG_REGISTRY_PREFIXstatic StringGOV_REGISTRY_PATHstatic StringGOV_REGISTRY_PREFIXstatic org.apache.commons.logging.Loglog
-
Constructor Summary
Constructors Constructor Description RegistryCachingHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(org.wso2.carbon.registry.core.jdbc.handlers.RequestContext requestContext)Clear cache when resource deleted in registry.Stringmove(org.wso2.carbon.registry.core.jdbc.handlers.RequestContext requestContext)Clear cache when resource move in registry.voidput(org.wso2.carbon.registry.core.jdbc.handlers.RequestContext requestContext)Clear cache when adding new resource into the registry.Stringrename(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.RegistryExceptionClear cache when adding new resource into the registry.- Overrides:
putin 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:
renamein 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:
movein 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.RegistryExceptionClear cache when resource deleted in registry.- Overrides:
deletein 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
-
-