Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #14359

Re: Packages and Reflection in an Applet

From "Richard Maher" <maher_rj@hotspamnotmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Packages and Reflection in an Applet
Date 2012-05-07 20:54 +0800
Organization HTTP *is* The Box - Let's think outside
Message-ID <jo8gmk$ubb$1@speranza.aioe.org> (permalink)
References <jo2dk4$mh$1@speranza.aioe.org> <jo472b$qgt$1@dont-email.me>

Show all headers | View raw


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 

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Packages and Reflection in an Applet "Richard Maher" <maher_rj@hotspamnotmail.com> - 2012-05-05 13:25 +0800
  Re: Packages and Reflection in an Applet Arne Vajhøj <arne@vajhoej.dk> - 2012-05-05 17:30 -0400
    Re: Packages and Reflection in an Applet "Richard Maher" <maher_rj@hotspamnotmail.com> - 2012-05-07 20:47 +0800
      Re: Packages and Reflection in an Applet Arne Vajhøj <arne@vajhoej.dk> - 2012-05-08 22:14 -0400
  Re: Packages and Reflection in an Applet markspace <-@.> - 2012-05-05 14:45 -0700
    Re: Packages and Reflection in an Applet "Richard Maher" <maher_rj@hotspamnotmail.com> - 2012-05-07 20:54 +0800
      [OT] Poster's name (Was: Packages and Reflection in an Applet) Lew <noone@lewscanon.com> - 2012-05-08 05:32 -0700
        Re: [OT] Poster's name (Was: Packages and Reflection in an Applet) markspace <-@.> - 2012-05-08 07:43 -0700
          Re: [OT] Poster's name (Was: Packages and Reflection in an Applet) Jan Burse <janburse@fastmail.fm> - 2012-05-08 17:02 +0200
          Re: [OT] Poster's name (Was: Packages and Reflection in an Applet) Gene Wirchenko <genew@ocis.net> - 2012-05-08 09:26 -0700

csiph-web