Greetings, first email to the list.... it always starts with the
whining :) ... so here goes....
I'm pretty new to guice and so need a little help with this one....
We are trying to port an existing Spring app that uses marker
interfaces to identify all the defined (and instantiated) implementers
of a particular maker interface.
In Spring this looks like
private List<Object> getAutoRegisteredBeansOfType(Class<?> c) {
String[] autobeans = applicationContext.getBeanNamesForType(c,
false, false);
List<Object> l = new ArrayList<Object>();
for (String autobean : autobeans) {
if (autoRegistered.contains(autobean)) {
Object bean = applicationContext.getBean(autobean);
l.add(bean);
}
}
Collections.sort(l, new OrderComparator());
return l;
}
... I suspect the answer to this will involve looking at the problem
from a guicey angle.... so that is what I am hoping to get some help
with... putting me on the right path maybe...
Thanks for taking a look.
--
Jon Gorrono
email{>+++++++++[>+++++++++++>++++++++++++>+++++++>+++++<<<<-]>+++++++.>++++.<---.>-.+++..---.-.+.>+.<++++++.<----.+.---.>+.<++++++++.>---.>>+.<<<----.-.>++.}
http{ats.ucdavis.edu}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---