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 java.lang.Object
implements InjectionInfo

Simple interface implementation, useful as a base class.

Author:
Costin Leau

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

Field Detail

name

protected java.lang.String name

type

protected java.lang.Class type
Constructor Detail

BasicInjectionInfo

protected BasicInjectionInfo()
Constructor useful for subclasses.


BasicInjectionInfo

public BasicInjectionInfo(java.lang.String name,
                          java.lang.Class type)
Method Detail

getName

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

Specified by:
getName in interface InjectionInfo
Returns:

getType

public java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

getInjectionName

public java.lang.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 Interface21. All Rights Reserved.