org.springframework.jee.inject
Class MethodInjection
java.lang.Object
org.springframework.jee.inject.Injection
org.springframework.jee.inject.MethodInjection
- All Implemented Interfaces:
- InjectionI
- Direct Known Subclasses:
- EjbMethodInjection
public class MethodInjection
- extends Injection
JSR 250 method level injection.
- Author:
- Rod Johnson, Costin Leau
Method Summary |
void |
apply(Object instance,
Object value)
Applies the given value on the instance according to the injection
information - implementation specific. |
protected Class |
getMemberType()
Need to be implemented based on the member type. |
fieldName
protected String fieldName
MethodInjection
public MethodInjection(Method m,
InjectionInfo ri)
MethodInjection
public MethodInjection(Method m,
javax.annotation.Resource annotation)
apply
public void apply(Object instance,
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 interface InjectionI
- Specified by:
apply
in class Injection
getMemberType
protected 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-2008 SpringSource (formerly Interface21). All Rights Reserved.