org.springframework.jee.inject
Class FieldInjection

java.lang.Object
  extended by org.springframework.jee.inject.Injection
      extended by org.springframework.jee.inject.FieldInjection
Direct Known Subclasses:
EjbFieldInjection

public class FieldInjection
extends Injection

JSR 250 field level injection.

Author:
Rod Johnson, Costin Leau

Field Summary
 
Fields inherited from class org.springframework.jee.inject.Injection
info, member
 
Constructor Summary
FieldInjection(java.lang.reflect.Field f, InjectionInfo ri)
           
FieldInjection(java.lang.reflect.Field f, 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
 

Constructor Detail

FieldInjection

public FieldInjection(java.lang.reflect.Field f,
                      InjectionInfo ri)

FieldInjection

public FieldInjection(java.lang.reflect.Field f,
                      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.