Package com.sun.identity.policy
Class PolicyDecisionCacheListener
- java.lang.Object
-
- com.sun.identity.policy.PolicyDecisionCacheListener
-
- All Implemented Interfaces:
PolicyListener
public class PolicyDecisionCacheListener extends Object implements PolicyListener
The classPolicyDecisionCacheListenerimplements PolicyListener interface. It listens on for changes in the policies as sent out by the policy framework and cleans up the policy decision cache for affected resources.
-
-
Constructor Summary
Constructors Constructor Description PolicyDecisionCacheListener(String serviceName)Constructor ofPolicyDecisionCacheListener
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetServiceTypeName()The implementation for the PolicyListener interface method gets the service name on which the listener listens.voidpolicyChanged(PolicyEvent evt)This is the callback implementation for the PolicyListener which gets called when a policy changes.voidsetServiceTypeName(String name)Sets the service name on which this listener listens
-
-
-
Constructor Detail
-
PolicyDecisionCacheListener
public PolicyDecisionCacheListener(String serviceName)
Constructor ofPolicyDecisionCacheListener- Parameters:
serviceName- name of the service for which this object is being created.
-
-
Method Detail
-
setServiceTypeName
public void setServiceTypeName(String name)
Sets the service name on which this listener listens- Parameters:
name- the service name
-
getServiceTypeName
public String getServiceTypeName()
The implementation for the PolicyListener interface method gets the service name on which the listener listens.- Specified by:
getServiceTypeNamein interfacePolicyListener- Returns:
- service name
-
policyChanged
public void policyChanged(PolicyEvent evt)
This is the callback implementation for the PolicyListener which gets called when a policy changes. On getting called this method drops the dirty cache for the affected resources.- Specified by:
policyChangedin interfacePolicyListener- Parameters:
evt-PolicyEventindicating the resource names which got affected.- See Also:
PolicyEvent
-
-