com.microsoft.tfs.core.checkinpolicies.events
Class PolicyEvaluatorStateChangedEvent

java.lang.Object
  extended by com.microsoft.tfs.core.clients.CoreClientEvent
      extended by com.microsoft.tfs.core.checkinpolicies.events.PolicyEvaluatorStateChangedEvent

public final class PolicyEvaluatorStateChangedEvent
extends CoreClientEvent

Event fired when the state of a PolicyEvaluator object has changed, usually because of a new team project source or selected items in the pending checkin have changed. This is not the event thrown when a PolicyInstance re-evaluates (see PolicyStateChangedEvent).

Because events are fired outside of synchronization in PolicyEvaluator, the PolicyEvaluator's state may not still be PolicyEvaluatorState.POLICIES_LOAD_ERROR when a listener queries it.

Since:
TEE-SDK-10.1
Thread-safety:
immutable

Constructor Summary
PolicyEvaluatorStateChangedEvent(EventSource source, PolicyEvaluator evaluator)
          Describes the policy state change.
 
Method Summary
 PolicyEvaluator getEvaluator()
           
 
Methods inherited from class com.microsoft.tfs.core.clients.CoreClientEvent
getEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyEvaluatorStateChangedEvent

public PolicyEvaluatorStateChangedEvent(EventSource source,
                                        PolicyEvaluator evaluator)
Describes the policy state change.

Parameters:
source - the source of the change (must not be null)
evaluator - the PolicyEvaluator that changed (must not be null)
Method Detail

getEvaluator

public PolicyEvaluator getEvaluator()
Returns:
the evaluator that changed.


© 2015 Microsoft. All rights reserved.