Re: [Openjnlp-devel] Tweak to AppletRunner.java
Brought to you by:
kherr
From: Jeff A. <je...@wo...> - 2002-05-17 18:33:34
|
At 11:37 AM -0400 5/17/02, Scott Kovatch wrote: >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... > Actually, there is some documentation on what they can be used for by applets that want to basically persist anything longer than a single session, and some sample code at: http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/persistence.html more useful is section 4.2 (page 24) of: http://internal.wolfram.com/~jeffa/java/api/1.4_plugin.pdf Jeff |