C# Класс 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.

Наследование: AbstractMethodReplacer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Implement() публичный Метод

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.
Результат object

LookupMethodReplacer() публичный Метод

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. ///
Результат System.Reflection