Rio Project 4.2 API Documentation
org.rioproject.associations
Enum AssociationType
java.lang.Object
java.lang.Enum<AssociationType>
org.rioproject.associations.AssociationType
- All Implemented Interfaces:
- Serializable, Comparable<AssociationType>
public enum AssociationType
- extends Enum<AssociationType>
The AssocationType defines the different types an
may have. An AssociationType may be
either:
- Uses
A weak association relationship where if A uses B exists then, then B may be
present for A
- Requires
A stronger association relationship where if A requires B exists then B must
be present for A
- Colocated
An association which requires that A be colocated with B in the same
JVM. If B does not exist, or cannot be located, A shall not be created
without B
- Opposed
An association which requires that A exist in a different JVM then B.
- Isolated
An association which requires that A exist in a different machine then B.
- Author:
- Dennis Reedy
USES
public static final AssociationType USES
REQUIRES
public static final AssociationType REQUIRES
COLOCATED
public static final AssociationType COLOCATED
OPPOSED
public static final AssociationType OPPOSED
ISOLATED
public static final AssociationType ISOLATED
values
public static AssociationType[] 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 (AssociationType c : AssociationType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AssociationType 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
toString
public String toString()
- Overrides:
toString in class Enum<AssociationType>
Copyright © 2006-2011 Rio Project. All Rights Reserved.