To implement a com.opensymphony.xwork2.ObjectFactory, we should override 
    public Object buildBean(Class clazz, Map extraContext);
and create/obtain a bean instance of specified bean class (provided by param 

I think I may get a WebBeansContainer instance as follow
    WebBeansContainer container = WebBeansContainer.create();
and then use it to create/obtain bean instance.

How could I do this?

----- Original Message ----- 
From: "wesley" <[EMAIL PROTECTED]>
To: "General Discussion for the Resin application server" 
Sent: Friday, December 21, 2007 8:06 PM
Subject: [Resin-interest] How Resin/Ioc used for struts2/xwork2,need an 
ObjectFactory implementation

> I'm using Struts2 in nearly every new projects these days, with Guice as 
> the
> IoC injector.
> I want to switch to Resin's WebBeans implementation and Resin/IoC.
> One of the main concerns is that I could not figure out how to write a
> ObjectFactory implementation using
> Resin/IoC/WebBeans infrastucture, like Guice/Spring did.
> Could anyone provide me an example or some instructions/tips for me to
> follow?
> Thanks very much.
> Wesley

resin-interest mailing list

Reply via email to