Timo,
Factory methods to create beans, and the factory-method attribute, are
only available in the CVS head version of Spring.
Colin
Timo Verhoeven wrote:
>Hi!
>
>I'm using a factory to create a bean as written in the documentation:
>
><bean id="exampleBean" class="examples.ExampleBean"
> factory-method="createInstance">
>...
></bean>
>
>On app startup I get: org.xml.sax.SAXParseException: Attribute
>"factory-method" must be declared for element type "bean".
>
>The current spring-beans.dtd at
>http://www.springframework.org/dtd/spring-beans.dtd does not contain
>the factory-method attribute.
>
>Is the documentation out of date here or is something missing in the
>dtd/implementation?
>
>Regards,
>
>Timo
>
>
|