Re: [Openjnlp-devel] Tweak to AppletRunner.java
Brought to you by:
kherr
From: Scott K. <sko...@ap...> - 2002-05-17 15:38:09
|
On Thursday, May 16, 2002, at 10:13 PM, Kevin Herrboldt wrote: > On Tuesday, May 14, 2002, at 08:22 , Scott Kovatch wrote: > >> That's fine -- those additional methods are only used by the Java Plugin on 1.4 -- AppletRunner would only need those to satisfy the interface and nothing else. > > I went ahead and implemented the methods to actually do stuff, since it was pretty straightforward using collections. > > Do you know how these methods are used or what Sun's intention is? Seems odd Sun would add these to the AppletContext interface just for the Java Plugin. Now they're exposed to the applet itself through Applet.getAppletContext, so I can see applet writers using them. They're related to JavaBeans -- I believe there's a feature of the plugin that allows you to wrap a Java Bean as an ActiveX control, so there's a pile of code that treats JavaBeans like applets. As a security measure you don't want components reading from or writing to each others streams, so this is how they keep them separate. That's a 10-minute reading-of-the-code analysis, so I may be wrong. But, you're implementation sounds like it matches what's in the plugin. I doubt it will ever get used, though. Scott _____________________ Scott Kovatch Java Runtime Classes Apple Computer Cleveland Hts, OH sko...@ap... |