com.microsoft.tfs.core.checkinpolicies.events
Class PolicyEvaluatorStateChangedEvent
java.lang.Object
com.microsoft.tfs.core.clients.CoreClientEvent
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
)
getEvaluator
public PolicyEvaluator getEvaluator()
- Returns:
- the evaluator that changed.
© 2015 Microsoft. All rights reserved.