This is exactly done by the method in the code below.
The url can now be null, as per your previous request.
Simply put in Application.class, and you'll get a set of all classes that extend it.
On Jun 14, 2010, at 6:05 PM, Bill Burke wrote:
I also need to ask for classes that extend
javax.ws.rs.ext.Application,
but that is an entirely different requirement than the @Path one.
Ales Justin wrote:
> Eh, my bad.
> Yeah, it should have said
> "Then you get sub classes of these annotated classes".
>
> /**
> * Get sub classes.
> *
> * @param url the optional classpath entry path
> * @param superTypeToLookFor the super type
> * @return set of sub types
> */
> <T> Set<Class<? extends T>> getSubClassesOf(URL url,
Class<T> superTypeToLookFor);
>
> This is the existing HierarchyIndex api.