org.springframework.jee.inject
Class MethodInjection
java.lang.Object
org.springframework.jee.inject.Injection
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
|
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 |
fieldName
protected java.lang.String fieldName
MethodInjection
public MethodInjection(java.lang.reflect.Method m,
InjectionInfo ri)
MethodInjection
public MethodInjection(java.lang.reflect.Method m,
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.