This content has been marked as final.
Show 2 replies
-
1. Re: Retrieving beans using related generic class
jharting Oct 23, 2013 6:12 AM (in response to bryncooke)If the type parameter is actual it's raw type has to be identical with the raw type of the bean's type parameter. However, you can use a wildcard or a type variable as the type parameter. Make sure you check TypeLiteral. For example, to get the parameterized type ConfigurationProvider<?> you could do:
new TypeLiteral<ConfigurationProvider<?>>() {}.getType() and pass the result to getBeans().
-
2. Re: Retrieving beans using related generic class
bryncooke Oct 23, 2013 6:20 AM (in response to jharting)That's great. Thanks for your help.
Bryn