IBehaviorGuardEvaluator
.
Modifier and type | Action and description |
---|---|
abstract ConcurrentCollection<T> | getBehaviorGuardEvaluatorsForDirectAccessListener(Event,Object) Gets an iterator representing an immutable snapshot of all BehaviorGuardEvaluators of the given listener to the given event at the time this method is called. |
abstract ConcurrentCollection<T> | getBehaviorGuardEvaluatorsForRegisteredListeners(Event) Gets an iterator representing an immutable snapshot of all BehaviorGuardEvaluators to the given event at the time this method is called. |
abstract ConcurrentSet<T> | getRegisteredEventListeners(Class<T>) Extract the registered listeners with the given type. |
abstract int | getRegisteredEventListeners(Class<T>,Set<E>) Extract the registered listeners with the given type. |
abstract boolean | hasRegisteredEventListener(Class<T>) Replies if a listener with the given type is registered. |
default void | register(Object,[Procedure1<Param>]) Registers all PerceptGuardEvaluator methods on the given listener object. |
abstract void | register(Object,Function1<Param,Result>,[Procedure1<Param>]) Registers all PerceptGuardEvaluator methods on the given listener object. |
abstract void | unregister(Class<T>,Function1<Param,Result>) Unregisters all BehaviorGuardEvaluators on the listener objects of the given type. |
abstract void | unregister(Object,Procedure1<Param>) Unregisters all BehaviorGuardEvaluators on the given listener object. |
abstract void | unregisterAll(Function1<Param,Result>) Unregisters all BehaviorGuardEvaluators on all the listener objects. |
def getBehaviorGuardEvaluatorsForDirectAccessListener(Event,Object) : ConcurrentCollection<T>
def getBehaviorGuardEvaluatorsForRegisteredListeners(Event) : ConcurrentCollection<T>
def getRegisteredEventListeners(Class<T>) : ConcurrentSet<T>with T
def getRegisteredEventListeners(Class<T>,Set<E>) : intwith T
def hasRegisteredEventListener(Class<T>) : boolean
def register(Object,[Procedure1<Param>])
PerceptGuardEvaluator
methods on the given listener object.
def register(Object,Function1<Param,Result>,[Procedure1<Param>])
PerceptGuardEvaluator
methods on the given listener object.
If the filter is provided, it will be used for determining if the given behavior accepts a specific event. If the filter function replies true
for a specific event as argument, the event is fired in the behavior context. If the filter function replies false
, the event is not fired in the behavior context.
def unregister(Class<T>,Function1<Param,Result>)
def unregister(Object,Procedure1<Param>)
def unregisterAll(Function1<Param,Result>)