org.ow2.easybeans.api
Enum OperationState

java.lang.Object
  extended by java.lang.Enum<OperationState>
      extended by org.ow2.easybeans.api.OperationState
All Implemented Interfaces:
Serializable, Comparable<OperationState>

public enum OperationState
extends Enum<OperationState>

Defines types of operations.

Author:
Florent Benoit

Enum Constant Summary
AFTER_BEGIN
          afterBegin method of a SessionSynchronization.
AFTER_COMPLETION
          afterCompletion method of a SessionSynchronization.
BEFORE_COMPLETION
          beforeCompletion method of a SessionSynchronization.
BUSINESS_METHOD
          Business method.
DEPENDENCY_INJECTION
          Container is calling dependency injection methods.
LIFECYCLE_CALLBACK_INTERCEPTOR
          LifeCycle callback interceptor methods.
 
Method Summary
static OperationState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OperationState[] 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

DEPENDENCY_INJECTION

public static final OperationState DEPENDENCY_INJECTION
Container is calling dependency injection methods.


LIFECYCLE_CALLBACK_INTERCEPTOR

public static final OperationState LIFECYCLE_CALLBACK_INTERCEPTOR
LifeCycle callback interceptor methods.


AFTER_BEGIN

public static final OperationState AFTER_BEGIN
afterBegin method of a SessionSynchronization.


BEFORE_COMPLETION

public static final OperationState BEFORE_COMPLETION
beforeCompletion method of a SessionSynchronization.


AFTER_COMPLETION

public static final OperationState AFTER_COMPLETION
afterCompletion method of a SessionSynchronization.


BUSINESS_METHOD

public static final OperationState BUSINESS_METHOD
Business method.

Method Detail

values

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

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

valueOf

public static OperationState 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 © 2006-2012 OW2 Consortium. All Rights Reserved.