Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Callstack question

Thread Tools

Callstack question

Posts: n/a
I'm doing text localization, and my locale
managing class is responsible for handing
out text strings based on tags.

The tags/strings are kept in resource
bundles within each package.

The API is like this:

String getText (Package package, String tag)

My question is this: Can I do this *without*
the package parameter? The parameter is used
to locate the bundle, but the package is
*always* the package of the object calling
getText(). So if I could investigate the call
stack inside getText() I should be able to
get this information implicitly.

Can I do this? Is throwing an exception a
possible/recommended approach?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE events expire (typeof = unknown) after callStack finishes. (featuring: setTimeout scoping) Javascript 1 02-21-2007 10:28 PM
callstack level Ruby 3 07-06-2006 08:23 PM
obtaining callstack level C++ 11 04-26-2006 07:08 AM
Question re: features of the 831 router (also a 924 question) Wayne Cisco 0 03-02-2004 07:57 PM
Retrieve callstack from a Thread Morten Simonsen Java 1 09-17-2003 09:22 PM