org.springframework.jee.inject
Class MethodInjection

java.lang.Object
  extended by org.springframework.jee.inject.Injection
      extended by org.springframework.jee.inject.MethodInjection
Direct Known Subclasses:
EjbMethodInjection

public class MethodInjection
extends Injection

JSR 250 method level injection.

Author:
Rod Johnson, Costin Leau

Field Summary
protected  java.lang.String fieldName
           
 
Fields inherited from class org.springframework.jee.inject.Injection
info, member
 
Constructor Summary
MethodInjection(java.lang.reflect.Method m, InjectionInfo ri)
           
MethodInjection(java.lang.reflect.Method m, Resource annotation)
           
 
Method Summary
 void apply(java.lang.Object instance, java.lang.Object value)
          Applies the given value on the instance according to the injection information - implementation specific.
protected  java.lang.Class getMemberType()
          Need to be implemented based on the member type.
 
Methods inherited from class org.springframework.jee.inject.Injection
containsValue, getDefaultName, getInfo, getName, getType, getValue, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fieldName

protected java.lang.String fieldName
Constructor Detail

MethodInjection

public MethodInjection(java.lang.reflect.Method m,
                       InjectionInfo ri)

MethodInjection

public MethodInjection(java.lang.reflect.Method m,
                       Resource annotation)
Method Detail

apply

public void apply(java.lang.Object instance,
                  java.lang.Object value)
Description copied from class: Injection
Applies the given value on the instance according to the injection information - implementation specific.

Specified by:
apply in class Injection

getMemberType

protected java.lang.Class getMemberType()
Description copied from class: Injection
Need to be implemented based on the member type.

Specified by:
getMemberType in class Injection
Returns:


Copyright 2006 Interface21. All Rights Reserved.