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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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.voidput(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
-
Field Details
-
log
public static final org.apache.commons.logging.Log log -
GOV_REGISTRY_PATH
- See Also:
-
GOV_REGISTRY_PREFIX
- See Also:
-
CONFIG_REGISTRY_PATH
- See Also:
-
CONFIG_REGISTRY_PREFIX
- See Also:
-
-
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:
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.RegistryException Clear 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
-