com.neeve.aep
Enum AepEventDispatcher.DefaultHandlerDispatchPolicy

java.lang.Object
  extended by java.lang.Enum<AepEventDispatcher.DefaultHandlerDispatchPolicy>
      extended by com.neeve.aep.AepEventDispatcher.DefaultHandlerDispatchPolicy
All Implemented Interfaces:
Serializable, Comparable<AepEventDispatcher.DefaultHandlerDispatchPolicy>
Enclosing class:
AepEventDispatcher

public static enum AepEventDispatcher.DefaultHandlerDispatchPolicy
extends Enum<AepEventDispatcher.DefaultHandlerDispatchPolicy>

Enumerates the various default handler dispatch policies


Enum Constant Summary
DispatchAlways
          Indicates that an event is always dispatched to the default handler (if registered) even if it was dispatched to one or more annotated handlers.
DispatchIfNoAnnotatedHandlers
          Indicates that an event/message is dispatched to the default handler only if the event/message was not dispatched to no annotated event handlers.
 
Method Summary
static AepEventDispatcher.DefaultHandlerDispatchPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AepEventDispatcher.DefaultHandlerDispatchPolicy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DispatchAlways

public static final AepEventDispatcher.DefaultHandlerDispatchPolicy DispatchAlways
Indicates that an event is always dispatched to the default handler (if registered) even if it was dispatched to one or more annotated handlers.


DispatchIfNoAnnotatedHandlers

public static final AepEventDispatcher.DefaultHandlerDispatchPolicy DispatchIfNoAnnotatedHandlers
Indicates that an event/message is dispatched to the default handler only if the event/message was not dispatched to no annotated event handlers.

Note: This is the default handler dispatch policy

Method Detail

values

public static AepEventDispatcher.DefaultHandlerDispatchPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AepEventDispatcher.DefaultHandlerDispatchPolicy c : AepEventDispatcher.DefaultHandlerDispatchPolicy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AepEventDispatcher.DefaultHandlerDispatchPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.