org.jvnet.hk2.component
Enum HabitatListener.EventType

java.lang.Object
  extended by java.lang.Enum<HabitatListener.EventType>
      extended by org.jvnet.hk2.component.HabitatListener.EventType
All Implemented Interfaces:
Serializable, Comparable<HabitatListener.EventType>
Enclosing interface:
HabitatListener

public static enum HabitatListener.EventType
extends Enum<HabitatListener.EventType>


Enum Constant Summary
HABITAT_INITIALIZED
          Notification sent when this habitat has been initialized post startup
INHABITANT_ADDED
          Notification sent when a new inhabitant has been added to this habitat
INHABITANT_INDEX_ADDED
          Notification sent when an inhabitant contract is added to this habitat
INHABITANT_INDEX_REMOVED
          Notification sent when an inhabitant contract is removed from this habitat
INHABITANT_MODIFIED
          Notification sent when an inhabitant has been modified within this habitat
INHABITANT_REMOVED
          Notification sent when an inhabitant in this habitat has been removed
 
Method Summary
static HabitatListener.EventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HabitatListener.EventType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HABITAT_INITIALIZED

public static final HabitatListener.EventType HABITAT_INITIALIZED
Notification sent when this habitat has been initialized post startup


INHABITANT_ADDED

public static final HabitatListener.EventType INHABITANT_ADDED
Notification sent when a new inhabitant has been added to this habitat


INHABITANT_MODIFIED

public static final HabitatListener.EventType INHABITANT_MODIFIED
Notification sent when an inhabitant has been modified within this habitat


INHABITANT_REMOVED

public static final HabitatListener.EventType INHABITANT_REMOVED
Notification sent when an inhabitant in this habitat has been removed


INHABITANT_INDEX_ADDED

public static final HabitatListener.EventType INHABITANT_INDEX_ADDED
Notification sent when an inhabitant contract is added to this habitat


INHABITANT_INDEX_REMOVED

public static final HabitatListener.EventType INHABITANT_INDEX_REMOVED
Notification sent when an inhabitant contract is removed from this habitat

Method Detail

values

public static HabitatListener.EventType[] 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 (HabitatListener.EventType c : HabitatListener.EventType.values())
    System.out.println(c);

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

valueOf

public static HabitatListener.EventType 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 © 2013 Oracle Corporation. All Rights Reserved.