Re: How get service by marker annotation

2009-02-28 Thread Howard Lewis Ship
That is not currently part of the API. You can simulate it by using the T T getObject(ClassT objectType, AnnotationProvider annotationProvider) method. That's a bit trickier and the API needs to change to support your needs (please add an issue). Generally, this isn't necessary because you

How get service by marker annotation

2009-02-27 Thread foror
I have @SomeMarker annotation: @Marker({...@somemarker}) void SomeService buildSomeService() {...} How get SomeService by his marker (in ObjectLocator I not found like method). method like this: T T getService(? extends Annotation marker, ClassT interface)