C# Class Spring.Objects.Factory.Support.LookupMethodReplacer

An Spring.Objects.Factory.Support.IMethodReplacer implementation that simply returns the result of a lookup in an associated IoC container.

This class is Spring.NET's implementation of Dependency Lookup via Method Injection.

This class is reserved for internal use within the framework; it is not intended to be used by application developers using Spring.NET.

Inheritance: AbstractMethodReplacer
Show file Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
Implement ( object target, MethodInfo method, object arguments ) : object

Reimplements the supplied method by returning the result of an object lookup in an enclosing IoC container.

LookupMethodReplacer ( IConfigurableObjectDefinition objectDefinition, IObjectFactory objectFactory ) : System.Reflection

Creates a new instance of the LookupMethodReplacer class.

Method Details

Implement() public method

Reimplements the supplied method by returning the result of an object lookup in an enclosing IoC container.
public Implement ( object target, MethodInfo method, object arguments ) : object
target object /// The instance whose is to be /// (re)implemented. ///
method System.Reflection.MethodInfo /// The method that is to be (re)implemented. ///
arguments object The target method's arguments.
return object

LookupMethodReplacer() public method

Creates a new instance of the LookupMethodReplacer class.
/// If either of the supplied arguments is . ///
public LookupMethodReplacer ( IConfigurableObjectDefinition objectDefinition, IObjectFactory objectFactory ) : System.Reflection
objectDefinition IConfigurableObjectDefinition /// The object definition that is the target of the method replacement. ///
objectFactory IObjectFactory /// The enclosing IoC container with which the above /// is associated. ///
return System.Reflection