find out which class invoked the constructor

i wrote a class named DAOBase and i am creating object of the same in several other classes. So is there any way to know which class has invoked the constructor of DAOBase.

i want to print out the name of the class that invoked the constructor of DAOBase at the time of constructor invocation...

Is there any way?

Please Help...

[361 byte] By [yatinit] at [2007-9-30 15:51:33]
# 1

Please do not cross post.

http://forum.java.sun.com/thread.jsp?thread=548285&forum=31&message=2672354

http://forum.java.sun.com/thread.jsp?thread=548293&forum=47&message=2672381

http://forum.java.sun.com/thread.jsp?thread=548295&forum=54&message=2672385

http://forum.java.sun.com/thread.jsp?thread=548298&forum=33&message=2672391

sjasja at 2007-7-5 23:19:21 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 2
Hi,Take a look at:StackTraceElement[] e = new Exception().getStackTrace();/Kaj
kajbj at 2007-7-5 23:19:21 > top of Java-index,Archived Forums,Debugging Tools and Techniques...