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

Inheritance: IInstantiationStrategy
Afficher le fichier Open project: spring-projects/spring-net Class Usage Examples

Protected Properties

Свойство Type Description
log ILog

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
GetZeroArgConstructorInfo ( Type type ) : ConstructorInfo

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

Method Details

Instantiate() public méthode

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 ///
Résultat object

Instantiate() public méthode

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. ///
Résultat object

Instantiate() public méthode

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. ///
Résultat object

InstantiateWithMethodInjection() protected méthode

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 ///
Résultat object

InstantiateWithMethodInjection() protected méthode

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. ///
Résultat object

Property Details

log protected_oe static_oe property

The shared Common.Logging.ILog instance for this class (and derived classes).
protected static ILog log
Résultat ILog