C# Класс Spring.Objects.Factory.Support.SimpleInstantiationStrategy

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

Защищенные свойства (Protected)

Свойство Тип Описание
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