Re: Applets and custom class loaders



On Oct 17, 7:23 am, "a24...@xxxxxxxxxxxxxx" <a24...@xxxxxxxxxxxxxx>
wrote:
On Oct 16, 9:52 am, "Andrew Thompson" <u32984@uwe> wrote:

In addition to loading loose classes
lazily, you *might* (if it makes sense) also load resources from
Jar files lazily. Do not add them to the archives attribute
(obviously) and simply form a complete URL to the jar/resource
when accessing it.

The jar is sent as a whole over the network. A web server does not
understand a URL pointing into a jar, can not extract the class or
resource out of a jar and can not individually send a class or
resource from a jar. ...

Which is not a problem, if it is 'one resource per jar'.

The OP mentioned lazy loading, which implies either
a lot of, or large, resources. If the latter, the
Jar might make sense - or at least, Jar(s) for the
largest resource(s).

Andrew T.

.



Relevant Pages