PAGE2GO2 HOME | INTERNET NEWS

LeighExchange - Free Advertising Network Stock Research at Internet Speed Need Money Easy and Quick?

Re: Reflection: Instantiate All Classes in a Package?

 List
Subject: Re: Reflection: Instantiate All Classes in a Package?
Poster: Oliver Wong
Date: Fri, 23 Mar 2007 18:28:28 -0400
Related Postings: 1 2 3 4 5
"Oliver Wong" wrote in message news:GmZMh.23233$px1.242031@weber.videotron.net...
>
> "Joshua Cranmer" wrote in message
> news:lzXMh.493$Ht2.302@trnddc06...
>> Jason Cavett wrote:
>>> I was wondering...
>>>
>>> Is it possible, by using Java reflection, to instantiate all classes
>>> existing in a package without knowing the names of those classes.
> [...]
>>
>> Using Java reflection, the answer is NO. For more information, check
>> the message thread "Getting a list of classes in a package"; there is a
>> nice long discussion on class/package/reflection.
>
> Actually, the answer turned out to be "yes" (though I can't find the
> thread where we concluded this),

Found it: http://groups.google.ca/group/comp.lang.java.programmer/browse_frm/thread/4017ee8e8edf3690/e7ca74ec29d74031

- Oliver

 

Page2Go2.com is not responsible for content of this message.