org.springframework.jee.inject
Class FieldInjection
java.lang.Object
org.springframework.jee.inject.Injection
org.springframework.jee.inject.FieldInjection
- Direct Known Subclasses:
- EjbFieldInjection
public class FieldInjection
- extends Injection
JSR 250 field level injection.
- Author:
- Rod Johnson, Costin Leau
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FieldInjection
public FieldInjection(java.lang.reflect.Field f,
InjectionInfo ri)
FieldInjection
public FieldInjection(java.lang.reflect.Field f,
Resource annotation)
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.