[jboss-dev] Way to scan for classes that extend or implement
Bill Burke
bburke at redhat.com
Mon Jun 14 12:05:01 EDT 2010
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.
>
> On Jun 14, 2010, at 4:53 PM, Emmanuel Bernard wrote:
>
>> On 14 juin 2010, at 16:49, Ales Justin wrote:
>>
>>> First you get all the classes that are annotated with @Path.
>>> Either they are interfaces or direct classes.
>>> Then you can get super classes of these annotated classes.
>> Bill would need the subclasses and implementations of these annotated types (recursively maybe).
>> _______________________________________________
>> jboss-development mailing list
>> jboss-development at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-development
>
>
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
More information about the jboss-development
mailing list