I am building a Java app that has a number of different packages. I want to be able to tell programmatically which packages exist in the app that start with a specific pre-fix. Is there anyway to do this with the Java reflection APIs? I didn't see anything like this related to the reflection apis.
Example:
com.app.controls.text
com.app.controls.picker
com.app.controls.date
etc
I want to enumerate all of these by knowing the prefix "com.app.controls" and understanding that a new package might get integrated in the future.
Thanks!