org.jboss.beans.metadata.api.model
Enum AutowireType

java.lang.Object
  extended by java.lang.Enum<AutowireType>
      extended by org.jboss.beans.metadata.api.model.AutowireType
All Implemented Interfaces:
Serializable, Comparable<AutowireType>

public enum AutowireType
extends Enum<AutowireType>

Autowire type: * ByClass - matching the class type of value (default) * ByName - matching the property name * Constructor - matching the constructor args * Auto - matching constructor or by type * None - do not autowire

Author:
Ales Justin

Enum Constant Summary
AUTO
           
BY_CLASS
           
BY_NAME
           
CONSTRUCTOR
           
NONE
           
 
Method Summary
static AutowireType getInstance(String typeString)
          Return injection type.
 String getTypeString()
          Get the state string
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
static AutowireType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AutowireType[] 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

NONE

public static final AutowireType NONE

BY_CLASS

public static final AutowireType BY_CLASS

BY_NAME

public static final AutowireType BY_NAME

CONSTRUCTOR

public static final AutowireType CONSTRUCTOR

AUTO

public static final AutowireType AUTO
Method Detail

values

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

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

valueOf

public static AutowireType 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

getInstance

public static AutowireType getInstance(String typeString)
Return injection type. Or NONE if no matching type.

Parameters:
typeString - type
Returns:
AutowireType instance

getTypeString

public String getTypeString()
Get the state string

Returns:
the state string

toString

public void toString(org.jboss.util.JBossStringBuilder buffer)


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.