Tuesday, July 30, 2002 03:43 PM
I am developing a component package, and I want the package to know the class name of the implimenting class (the application). Is this possible?
For example, class A imports and instantiates class B, I want class B to get "A" from class A without passing class A as an argument. Ideally, I want to know the class name that impliments main() (or other entry points for applets, servlets, etc).
I've looked into everything from Threads to printStackTrace, etc. There are a few solutions (namely printStackTrace, parsing for main()), but there has got to be a better way...