Openwings API Documentation (v1.0)

net.openwings.context
Interface PolicyListener


public interface PolicyListener

This interface describes a callback that can be registered with a Context to be notified when policies are added, changed, or deleted in a Context.


Method Summary
 void policyRemoved(java.lang.String key, Policy policy)
          This method is invoked when a policy is removed.
 void policySet(java.lang.String key, Policy policy)
          This method is invoked when a policy is added or changed.
 

Method Detail

policySet

public void policySet(java.lang.String key,
                      Policy policy)
               throws java.rmi.RemoteException
This method is invoked when a policy is added or changed.

Parameters:
key - Policy name.
policy - The policy.
Throws:
java.rmi.RemoteException - if there is an error communicating with the listener.

policyRemoved

public void policyRemoved(java.lang.String key,
                          Policy policy)
                   throws java.rmi.RemoteException
This method is invoked when a policy is removed.

Parameters:
key - Policy name.
policy - The policy.
Throws:
java.rmi.RemoteException - if there is an error communicating with the listener.

Openwings API Documentation (v1.0)