A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Using reflection to find all classes in a given package
Joined: Mar 15, 2004
Apr 11, 2005 06:22:00
Is it possible to find out all classes and/or subpackages of a given package using reflection?
Thanks in advance,
Joined: Apr 14, 2004
Apr 11, 2005 06:38:00
There's no API to do it directly. However you can find out the package for a particular classs, and you can trawl through all classes in your classpath.
I agree. Here's the link:
subject: Using reflection to find all classes in a given package
How to get all the classes present under one Package using reflection ?
getting all classes in a prticular packageusing reflection
How does autowiring work?
Junit and Emma
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014