org.jboss.beans.metadata.spi
Class AutowireType

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.beans.metadata.spi.AutowireType
All Implemented Interfaces:
Serializable, Cloneable, org.jboss.util.JBossInterface

public class AutowireType
extends org.jboss.util.JBossObject
implements Serializable

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
See Also:
Serialized Form

Field Summary
static AutowireType AUTO
          Auto
static AutowireType BY_CLASS
          Strict
static AutowireType BY_NAME
          Loose
static AutowireType CONSTRUCTOR
          Constructor
static AutowireType NONE
          None
static AutowireType[] TYPES
          Array
protected  String typeString
          The type string
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Method Summary
 boolean equals(Object object)
           
protected  int getHashCode()
           
static AutowireType getInstance(String typeString)
          Return injection type.
 String getTypeString()
          Get the state string
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final AutowireType NONE
None


BY_CLASS

public static final AutowireType BY_CLASS
Strict


BY_NAME

public static final AutowireType BY_NAME
Loose


CONSTRUCTOR

public static final AutowireType CONSTRUCTOR
Constructor


AUTO

public static final AutowireType AUTO
Auto


TYPES

public static final AutowireType[] TYPES
Array


typeString

protected final String typeString
The type string

Method Detail

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

equals

public boolean equals(Object object)
Overrides:
equals in class Object

toString

public void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class org.jboss.util.JBossObject

getHashCode

protected int getHashCode()
Overrides:
getHashCode in class org.jboss.util.JBossObject


Copyright ? 2007 JBoss Inc.. All Rights Reserved.