i was thinking about a way like Spring DI used to do something like

<bean type="com.foo.MyInterface" class="com.foo.MyImpl1" name="impl1" >
   <property name="a" value="Run time class"/>
</bean>

It would be more convient to have injection like this way.


On Mon, Oct 1, 2012 at 3:28 PM, Lukasz Lenart <lukaszlen...@apache.org>wrote:

> 2012/10/1 Aum Strut <aum.str...@gmail.com>:
> > Only information i was having that all provider classes will have to
> > extends MyClass and there are not any specific set of classes
> > which implements MyClass.
> >
> > So i was trying to make the provider inside my plugin a more generic
> which
> > should be capable enough to hook itself with any provider
> > which satisfy the contact ( <? extends MyClass> )
> >
> > is there any way to do this with S2 internals?
>
> Generics are erased during compile time, there is no option to check
> that. Use interface instead.
>
>
> Kind regards
> --
> Ɓukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to