C# 클래스 Spring.Objects.Factory.Support.MethodInjectingInstantiationStrategy

상속: SimpleInstantiationStrategy
파일 보기 프로젝트 열기: spring-projects/spring-net

보호된 메소드들

메소드 설명
InstantiateWithMethodInjection ( Spring.Objects.Factory.Support.RootObjectDefinition definition, string objectName, IObjectFactory factory ) : object

Instantiate an instance of the object described by the supplied definition from the supplied factory, injecting methods as appropriate.

InstantiateWithMethodInjection ( Spring.Objects.Factory.Support.RootObjectDefinition definition, string objectName, IObjectFactory factory, ConstructorInfo constructor, object arguments ) : object

Instantiate an instance of the object described by the supplied definition from the supplied factory, injecting methods as appropriate.

비공개 메소드들

메소드 설명
DoInstantiate ( Spring.Objects.Factory.Support.RootObjectDefinition definition, string objectName, IObjectFactory factory, Type ctorParameterTypes, object arguments ) : object

Instantiate an instance of the object described by the supplied definition from the supplied factory, injecting methods as appropriate.

This method dynamically generates a subclass that supports method injection for the supplied definition. It then instantiates an new instance of said type using the constructor identified by the supplied ctorParameterTypes, passing the supplied arguments to said constructor. It then manually injects (generic) method replacement and method lookup instances (of System.Type Spring.Objects.Factory.Support.IMethodReplacer) into the new instance: those methods that are 'method-injected' will then delegate to the approriate Spring.Objects.Factory.Support.IMethodReplacer instance to effect the actual method injection.

GetGeneratedType ( string objectName, Spring.Objects.Factory.Support.RootObjectDefinition definition ) : Type

메소드 상세

InstantiateWithMethodInjection() 보호된 메소드

Instantiate an instance of the object described by the supplied definition from the supplied factory, injecting methods as appropriate.
protected InstantiateWithMethodInjection ( Spring.Objects.Factory.Support.RootObjectDefinition definition, string objectName, IObjectFactory factory ) : object
definition Spring.Objects.Factory.Support.RootObjectDefinition /// The definition of the object that is to be instantiated. ///
objectName string /// The name associated with the object definition. The name can be the /// or zero length string if we're autowiring an /// object that doesn't belong to the supplied /// . ///
factory IObjectFactory /// The owning ///
리턴 object

InstantiateWithMethodInjection() 보호된 메소드

Instantiate an instance of the object described by the supplied definition from the supplied factory, injecting methods as appropriate.
protected InstantiateWithMethodInjection ( Spring.Objects.Factory.Support.RootObjectDefinition definition, string objectName, IObjectFactory factory, ConstructorInfo constructor, object arguments ) : object
definition Spring.Objects.Factory.Support.RootObjectDefinition /// The definition of the object that is to be instantiated. ///
objectName string /// The name associated with the object definition. The name can be the /// or zero length string if we're autowiring an /// object that doesn't belong to the supplied /// . ///
factory IObjectFactory /// The owning ///
constructor System.Reflection.ConstructorInfo /// The to be used to instantiate /// the object. ///
arguments object /// Any arguments to the supplied . May be null. ///
리턴 object