org.jboss.managed.api.annotation
Enum ActivationPolicy

java.lang.Object
  extended by java.lang.Enum<ActivationPolicy>
      extended by org.jboss.managed.api.annotation.ActivationPolicy
All Implemented Interfaces:
Serializable, Comparable<ActivationPolicy>

public enum ActivationPolicy
extends Enum<ActivationPolicy>

When a managed property change is applied

Version:
$Revision: 86627 $
Author:
Scott.Stark@jboss.org

Enum Constant Summary
COMPONENT_RESTART
          Changes are applied to metadata and require a component restart
DEPLOYMENT_RESTART
          Changes are applied to metadata and require a deployment restart
IMMEDIATE
          Changes are immediately applied to metadata and runtime components
SERVER_RESTART
          Changes are applied to metadata and require a server restart
 
Method Summary
static ActivationPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ActivationPolicy[] 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

IMMEDIATE

public static final ActivationPolicy IMMEDIATE
Changes are immediately applied to metadata and runtime components


COMPONENT_RESTART

public static final ActivationPolicy COMPONENT_RESTART
Changes are applied to metadata and require a component restart


DEPLOYMENT_RESTART

public static final ActivationPolicy DEPLOYMENT_RESTART
Changes are applied to metadata and require a deployment restart


SERVER_RESTART

public static final ActivationPolicy SERVER_RESTART
Changes are applied to metadata and require a server restart

Method Detail

values

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

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

valueOf

public static ActivationPolicy 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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.