commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject Re: [commons-discovery] Find classes implementing an Interface
Date Fri, 15 Aug 2008 15:19:06 GMT
To achieve that, you'd have to do some classpath scanning.

On Fri, Aug 15, 2008 at 10:46 AM, Darren Hartford <dhartford@ghsinc.com> wrote:
> I have an interface called IFindMe.
>
>
>
> I have 3 classes that implement this interface.
>
>
>
> I want to search for and retrieve all classes that implement IFindMe
> (i.e. should be 3 classes).
>
>
>
> Can commons-discovery do this?  Going through the Best Practices and the
> Guidelines and the Javadoc and trying, the present answer is 'no'.
> Please provide an example, or if commons-discovery can not solve this
> problem maybe a pointer to how one could (either through reflection, or
> parsing through the classpath, or however...).
>
>
>
> Thanky,
>
> -D
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message