Spring.Objects.Factory.Support.ObjectDefinitionBuilder.SetFactoryMethod C# (CSharp) Method

SetFactoryMethod() public method

Sets the name of the factory method to use for this definition.
public SetFactoryMethod ( string factoryMethod ) : ObjectDefinitionBuilder
factoryMethod string The factory method.
return ObjectDefinitionBuilder
        public ObjectDefinitionBuilder SetFactoryMethod(string factoryMethod)
        {
            objectDefinition.FactoryMethodName = factoryMethod;
            return this;
        }