Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "Richard Maher" Newsgroups: comp.lang.java.programmer Subject: Re: Packages and Reflection in an Applet Date: Mon, 7 May 2012 20:54:40 +0800 Organization: HTTP *is* The Box - Let's think outside Lines: 37 Message-ID: References: NNTP-Posting-Host: jOhPn0KFjrxwuMc9OPMmCw.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Response X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-Priority: 3 X-MSMail-Priority: Normal Xref: csiph.com comp.lang.java.programmer:14359 Hi Mark, "markspace" <-@.> wrote in message news:jo472b$qgt$1@dont-email.me... > On 5/4/2012 10:25 PM, Richard Maher wrote: > >> classes) to be supplied in a separate archive/JAR file and this will be >> located via the "archive=a,b,c" specifier (with "codebase_lookup" set to >> false). My "understanding" is that class.forName() will use the same >> classloader as the Applet and therefore I'm hoping that it will happily >> search through all specified JAR files looking for the requested class? > > > There *are* restrictions when running an applet regarding classloaders and > class loading. Basically the plug-in won't let you do anything that > *might* be a threat to Java applet security. I don't know if this applies > to your current situation however. I'm not asking for another/different classloader and the loadee class is at the same codebase so I think/dream I'm good to go. > I'd just make certain to have a backup plan in case this one ends up not > working as well as you'd hoped. Yeah, it's probably a version 2 nice to have. The fallback plan is it all works with a vanilla AWT interface right now. I'm guessing ProGuard configuration could also be an issue? "-keep theInterfaces" and --keep only th emethods that implement the interfaces in a munged class? (The 3rd party would implement an interface that callsback into other class instance methods in the Applet. (eg: Tier3Logoff from a console button) Anyway, I'm too happy about the threading/multiplexing model working now to worry about customization/localization. > Cheers Richard Maher