Interface PolicyListener
-
@SupportedAll @Deprecated public interface PolicyListener
Deprecated.The interfacePolicyListener
defines an interface for listeners that would register with policy framework to receive notifications whenever aPolicy
is added, removed or changed
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description String
getServiceTypeName()
Deprecated.Returns the service type name for which this listener wants to get notificationsvoid
policyChanged(PolicyEvent policyEvent)
Deprecated.This method is called by the policy framework whenever a policy is added, removed or changed.
-
-
-
Method Detail
-
getServiceTypeName
String getServiceTypeName()
Deprecated.Returns the service type name for which this listener wants to get notifications- Returns:
- String representing the service type name.
-
policyChanged
void policyChanged(PolicyEvent policyEvent)
Deprecated.This method is called by the policy framework whenever a policy is added, removed or changed. The notification is sent only if the policy has any rule that has theserviceTypeName
of this listener- Parameters:
policyEvent
- event object sent by the policy framework- See Also:
PolicyEvent
-
-