struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: How to get instance of the given dependency using Container
Date Mon, 01 Oct 2012 09:58:22 GMT
2012/10/1 Aum Strut <aum.struts@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message