JBoss Modular Service Kernel API 1.0.0.CR2

org.jboss.msc.service
Enum ServiceListener.Inheritance

java.lang.Object
  extended by java.lang.Enum<ServiceListener.Inheritance>
      extended by org.jboss.msc.service.ServiceListener.Inheritance
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ServiceListener.Inheritance>
Enclosing interface:
ServiceListener<S>

public static enum ServiceListener.Inheritance
extends java.lang.Enum<ServiceListener.Inheritance>

The inheritance type for a listener.


Enum Constant Summary
ALL
          This listener is inherited to all levels.
NONE
          This listener is never inherited.
ONCE
          This listener is inherited only to one level.
 
Method Summary
static ServiceListener.Inheritance valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ServiceListener.Inheritance[] 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

NONE

public static final ServiceListener.Inheritance NONE
This listener is never inherited.


ONCE

public static final ServiceListener.Inheritance ONCE
This listener is inherited only to one level.


ALL

public static final ServiceListener.Inheritance ALL
This listener is inherited to all levels.

Method Detail

values

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

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

valueOf

public static ServiceListener.Inheritance valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

JBoss Modular Service Kernel API 1.0.0.CR2

Copyright © 2011 JBoss, a division of Red Hat, Inc.