Re: Retreiving Object with specific annotation

2012-05-25 Thread Thomas Broyer
On Friday, May 25, 2012 10:35:27 AM UTC+2, Roger Gilliar wrote: > > Is it possible to retrieve an object with a specific annotation. > > Example: > > @ExtensionId(value=123) > class Test { > } > > @ExtensionId(value=124) > class Test2 { > } > > Object obj = injector.getInstance(???); // retrieve t

Retreiving Object with specific annotation

2012-05-25 Thread Roger Gilliar
Is it possible to retrieve an object with a specific annotation. Example: @ExtensionId(value=123) class Test { } @ExtensionId(value=124) class Test2 { } Object obj = injector.getInstance(???); // retrieve the object with the @ExtensionId(value=123) Object obj = injector.getInstance(???); // r