On Mon, Oct 20, 2008 at 1:30 AM, Jan Kriesten <[EMAIL PROTECTED]> wrote:
>
> Hi Igor,
>
> > add a package private default constructor to your class.
>
> default constructor wont work in this case.

why not? you dont own the class? then you have to use something like
salve. btw, if wicket cant create a proxy then neither will spring if
it needs to.

> > these are all well known limitations of proxying classes, you should try to
> > make sure your injected dependencies are interfaces or you something like
> > salve so no proxies are needed.
>
> Defining an interface for the class results in wicket-ioc not injecting the
> original class/constructor at all. So there's a flaw with this approach.

there is no flaw. extract an interface, make sure the class implements
it and inject the interface.

-igor

>
> Best regards, --- Jan.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to