Is it possible to use the static property of a class as a factory method to define an object?
<object id="MyObject" type="MyNamespace.Factory, MyAssembly" factory-method="FactoryObject" />
Using this configuration, an exception is thrown:
Error creating context 'spring.root': Cannot find the corresponding factory method 'FactoryObject on Type [MyNamespace.Factory]
source
share