Interesting. You might find it useful to read ....
http://castor.org/spring-xml-intro.html
as we have been providing factory beans for the Unmarshaller/Marshaller
classes for some time now. In other words, there should be no need to
provide your custom wrapper classes around the core XML data binding
classes.
Regards
Werner
Agarwal, Rahul wrote:
I have wrapper classes over the Castor configuration, marshaller and
unmarshaller. I can then create beans of these wrappers in spring. If
you follow a similar model I guess you could inject your other beans in
the wrappers as well.
Hope that helps.
-----Original Message-----
From: Felipe Toledo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2008 11:17 AM
To: [email protected]
Subject: [castor-user] Connecting Castor with Spring
Hil all,
Im trying to use Castor with Spring.
The problem:
- In my xml is mapped the Customer ID;
- This Customer is just instantiated thru the CustomerManager, which
instance is controlled with spring.
- I have created the CustomerFieldHandler to create/retrieve the new
instance.
Question: How to inject a new CustomerManager instance in the
FieldHandler?
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email