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

An Spring.Objects.Factory.Support.IMethodReplacer implementation that provides some convenience support for derived classes.

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

Inheritance: IMethodReplacer
Show file Open project: spring-projects/spring-net

Public Methods

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

Is ; derived classes must supply an implementation.

Protected Methods

Method Description
AbstractMethodReplacer ( IConfigurableObjectDefinition objectDefinition, IObjectFactory objectFactory ) : System

Creates a new instance of the ArgumentNullException class.

This is an class, and as such has no publicly visible constructors.

GetObject ( string objectName ) : object

Helper method for subclasses to lookup an object from an enclosing IoC container.

GetOverride ( MethodInfo method ) : Spring.Objects.Factory.Support.MethodOverride

Helper method for subclasses to retrieve the appropriate Spring.Objects.Factory.Support.MethodOverride for the supplied method.

Method Details

AbstractMethodReplacer() protected method

Creates a new instance of the ArgumentNullException class.

This is an class, and as such has no publicly visible constructors.

/// If either of the supplied arguments is . ///
protected AbstractMethodReplacer ( IConfigurableObjectDefinition objectDefinition, IObjectFactory objectFactory ) : System
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

GetObject() protected method

Helper method for subclasses to lookup an object from an enclosing IoC container.
protected GetObject ( string objectName ) : object
objectName string /// The name of the object that is to be looked up. ///
return object

GetOverride() protected method

Helper method for subclasses to retrieve the appropriate Spring.Objects.Factory.Support.MethodOverride for the supplied method.
protected GetOverride ( MethodInfo method ) : Spring.Objects.Factory.Support.MethodOverride
method System.Reflection.MethodInfo /// The to use to retrieve /// the appropriate /// . ///
return Spring.Objects.Factory.Support.MethodOverride

Implement() public abstract method

Is ; derived classes must supply an implementation.
public abstract 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