C# Class Spring.Objects.Factory.Xml.FactoryMethods

Test class for Spring.NET's ability to create objects using static factory methods, rather than constructors.
Exibir arquivo Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
DefaultInstance ( ) : FactoryMethods
NewInstance ( TestObject obj ) : FactoryMethods
NewInstance ( TestObject obj, string name, int num ) : FactoryMethods

Private Methods

Method Description
FactoryMethods ( TestObject obj, string name, int number )

Creates a new instance of the Spring.Objects.Factory.Xml.FactoryMethods class.

Constructor is private: not for use outside this class, even by the IoC container.

Method Details

DefaultInstance() public static method

public static DefaultInstance ( ) : FactoryMethods
return FactoryMethods

NewInstance() public static method

public static NewInstance ( TestObject obj ) : FactoryMethods
obj TestObject
return FactoryMethods

NewInstance() public static method

public static NewInstance ( TestObject obj, string name, int num ) : FactoryMethods
obj TestObject
name string
num int
return FactoryMethods