org.jboss.aop.advice
Enum Scope
java.lang.Object
java.lang.Enum<Scope>
org.jboss.aop.advice.Scope
- All Implemented Interfaces:
- Serializable, Comparable<Scope>
public enum Scope
- extends Enum<Scope>
Defines the lifecycle of an aspect or interceptor instance
- Version:
- $Revision: 57688 $
- Author:
- Bill Burke
Method Summary |
static Scope |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
PER_VM
public static final Scope PER_VM
PER_CLASS
public static final Scope PER_CLASS
PER_INSTANCE
public static final Scope PER_INSTANCE
PER_JOINPOINT
public static final Scope PER_JOINPOINT
PER_CLASS_JOINPOINT
public static final Scope PER_CLASS_JOINPOINT
values
public static final Scope[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Scope c : Scope.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Scope 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
Copyright © 2004 JBoss Inc. All Rights Reserved.