org.atmosphere.cpr
Enum AtmosphereFramework.MetaServiceAction

java.lang.Object
  extended by java.lang.Enum<AtmosphereFramework.MetaServiceAction>
      extended by org.atmosphere.cpr.AtmosphereFramework.MetaServiceAction
All Implemented Interfaces:
Serializable, Comparable<AtmosphereFramework.MetaServiceAction>
Enclosing class:
AtmosphereFramework

public static enum AtmosphereFramework.MetaServiceAction
extends Enum<AtmosphereFramework.MetaServiceAction>

This enumeration represents all possible actions to specify in a meta service file.

Since:
2.2.0
Version:
1.0
Author:
Guillaume DROUET

Enum Constant Summary
EXCLUDE
          Exclude service.
INSTALL
          Install service.
 
Method Summary
 void apply(AtmosphereFramework fwk, Class<?> clazz)
           Applies this action to given class.
static AtmosphereFramework.MetaServiceAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AtmosphereFramework.MetaServiceAction[] 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

INSTALL

public static final AtmosphereFramework.MetaServiceAction INSTALL
Install service.


EXCLUDE

public static final AtmosphereFramework.MetaServiceAction EXCLUDE
Exclude service.

Method Detail

values

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

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

valueOf

public static AtmosphereFramework.MetaServiceAction 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

apply

public void apply(AtmosphereFramework fwk,
                  Class<?> clazz)
           throws Exception

Applies this action to given class.

Parameters:
fwk - the framework
clazz - the class
Throws:
Exception - if procedure fails


Copyright © 2014. All Rights Reserved.