org.jboss.beans.metadata.plugins
Class InjectionOption

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

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

Injection option: * Strict - exactly one matching context (default) * Callback - issue callback once context with matching is present

Author:
Ales Justin
See Also:
Serialized Form

Field Summary
static InjectionOption CALLBACK
          Loose
protected  String optionString
          The type string
static InjectionOption STRICT
          Strict
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Method Summary
 boolean equals(Object object)
           
protected  int getHashCode()
           
static InjectionOption getInstance(String optionString)
          Return injection type.
 String getOptionString()
          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

STRICT

public static final InjectionOption STRICT
Strict


CALLBACK

public static final InjectionOption CALLBACK
Loose


optionString

protected final String optionString
The type string

Method Detail

getInstance

public static InjectionOption getInstance(String optionString)
Return injection type. Or exception if no matching type.

Parameters:
optionString - type
Returns:
InjectionOption instance

getOptionString

public String getOptionString()
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.