org.springframework.jee.inject
Class BasicInjectionInfo

java.lang.Object
  extended by org.springframework.jee.inject.BasicInjectionInfo
All Implemented Interfaces:
InjectionInfo
Direct Known Subclasses:
EjbReferenceInfo, ResourceInfo

public class BasicInjectionInfo
extends Object
implements InjectionInfo

Simple interface implementation, useful as a base class.

Author:
Costin Leau

Field Summary
protected  String name
           
protected  Class type
           
 
Constructor Summary
protected BasicInjectionInfo()
          Constructor useful for subclasses.
  BasicInjectionInfo(String name, Class type)
           
 
Method Summary
 String getInjectionName()
          Logging friendly message indicating what type of injection is applied (i.e.
 String getName()
          Injection name (may be field or method name).
 Class getType()
          Injection type (may be field type or setter parameter type).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

type

protected Class type
Constructor Detail

BasicInjectionInfo

protected BasicInjectionInfo()
Constructor useful for subclasses.


BasicInjectionInfo

public BasicInjectionInfo(String name,
                          Class type)
Method Detail

getName

public String getName()
Description copied from interface: InjectionInfo
Injection name (may be field or method name).

Specified by:
getName in interface InjectionInfo
Returns:

getType

public Class getType()
Description copied from interface: InjectionInfo
Injection type (may be field type or setter parameter type).

Specified by:
getType in interface InjectionInfo
Returns:

toString

public String toString()
Overrides:
toString in class Object

getInjectionName

public String getInjectionName()
Description copied from interface: InjectionInfo
Logging friendly message indicating what type of injection is applied (i.e. @Resource or @EJB).

Specified by:
getInjectionName in interface InjectionInfo


Copyright © 2006-2008 SpringSource (formerly Interface21). All Rights Reserved.