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

상속: IInstantiationStrategy
파일 보기 프로젝트 열기: spring-projects/spring-net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
log ILog

공개 메소드들

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

Instantiate an instance of the object described by the supplied definition from the supplied factory.

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

Instantiate an instance of the object described by the supplied definition from the supplied factory.

Instantiate ( Spring.Objects.Factory.Support.RootObjectDefinition definition, string name, IObjectFactory factory, MethodInfo factoryMethod, object arguments ) : object

Instantiate an instance of the object described by the supplied definition from the supplied factory.

보호된 메소드들

메소드 설명
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.

The default implementation of this method is to throw a System.InvalidOperationException.

Derived classes can override this method if they can instantiate an object with the Method Injection specified in the supplied definition. Instantiation should use a no-arg constructor.

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.

The default implementation of this method is to throw a System.InvalidOperationException.

Derived classes can override this method if they can instantiate an object with the Method Injection specified in the supplied definition. Instantiation should use the supplied constructor and attendant arguments.

비공개 메소드들

메소드 설명
GetZeroArgConstructorInfo ( Type type ) : ConstructorInfo

Gets the zero arg ConstructorInfo object, if the type offers such functionality.

메소드 상세

Instantiate() 공개 메소드

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

Instantiate() 공개 메소드

Instantiate an instance of the object described by the supplied definition from the supplied factory.
public Instantiate ( Spring.Objects.Factory.Support.RootObjectDefinition definition, string name, IObjectFactory factory, ConstructorInfo constructor, object arguments ) : object
definition Spring.Objects.Factory.Support.RootObjectDefinition /// The definition of the object that is to be instantiated. ///
name string /// The name associated with the object definition. The name can be the null /// 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

Instantiate() 공개 메소드

Instantiate an instance of the object described by the supplied definition from the supplied factory.
public Instantiate ( Spring.Objects.Factory.Support.RootObjectDefinition definition, string name, IObjectFactory factory, MethodInfo factoryMethod, object arguments ) : object
definition Spring.Objects.Factory.Support.RootObjectDefinition /// The definition of the object that is to be instantiated. ///
name string /// The name associated with the object definition. The name can be the null /// or zero length string if we're autowiring an object that doesn't belong /// to the supplied . ///
factory IObjectFactory /// The owning ///
factoryMethod MethodInfo /// The to be used to get the object. ///
arguments object /// Any arguments to the supplied . May be null. ///
리턴 object

InstantiateWithMethodInjection() 보호된 메소드

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

The default implementation of this method is to throw a System.InvalidOperationException.

Derived classes can override this method if they can instantiate an object with the Method Injection specified in the supplied definition. Instantiation should use a no-arg constructor.

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 a /// 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.

The default implementation of this method is to throw a System.InvalidOperationException.

Derived classes can override this method if they can instantiate an object with the Method Injection specified in the supplied definition. Instantiation should use the supplied constructor and attendant arguments.

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 null /// 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

프로퍼티 상세

log 보호되어 있는 정적으로 프로퍼티

The shared Common.Logging.ILog instance for this class (and derived classes).
protected static ILog log
리턴 ILog