- In most cases, there will be a local filesystem involved
- We only look in one classloader even now, which should delegate to
classloaders higher in the hierarchy anyway. Plus, we only need names
of classes.
- We can fall back on the "slow" way if anything fails.

On 5/10/06, David Corbin <[EMAIL PROTECTED]> wrote:
That example looks very flawed to me.  It's assuming there's local file system
involved in holding the classes.  Not only that, but you can have classes in
one package available from multiple different class loaders


On Wednesday 10 May 2006 06:47 pm, Charles O Nutter wrote:
> As an aside, here's an interesting code snippit for loading all
> classes in a given package. Basically, you just ask the classloader
> for a resource for the package, and then iterate over contents. Might
> be a good way to make import "foo.*" work as expected.
>
> http://www.jonpeck.com/forum/viewtopic.php?t=88
>
> On 5/10/06, Charles O Nutter <[EMAIL PROTECTED]> wrote:
> > I wouldn't mind an alias, and we could probably jury-rig import
> > "foo.*" to work at least as poorly as the old method of including a
> > package.
> >
> > - Charlie
> >
> > On 5/10/06, David Corbin <[EMAIL PROTECTED]> wrote:
> > > On Wednesday 10 May 2006 07:14 am, David Corbin wrote:
> > > > On Wednesday 10 May 2006 02:38 am, Charles O Nutter wrote:
> > > > > Can anyone remember why we decided to use include_class instead of
> > > > > import? It suddenly occurred to me today that import is both
> > > > > shorter and more precise, since we're really importing a Java class
> > > > > into the current namespace.
> > > >
> > > > I suspect it was to be kind of like 'include Module', but I don't
> > > > know why we would want that.
> > >
> > > On further reflection, it may be because we cannot import a package
> > > ("foo.*") and thus creates less confusion.
> > >
> > > > > There's probably a snowball's chance in hell we'll change it now,
> > > > > of course
> > > >
> > > > We could make import an alias for it.
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > Using Tomcat but need to do more? Need to support web services,
> > > > security? Get stuff done quickly with pre-integrated technology to
> > > > make your job easier Download IBM WebSphere Application Server
> > > > v.1.0.1 based on Apache Geronimo
> > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121
> > > >642 _______________________________________________
> > > > Jruby-devel mailing list
> > > > Jruby-devel@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/jruby-devel
> > >
> > > -------------------------------------------------------
> > > Using Tomcat but need to do more? Need to support web services,
> > > security? Get stuff done quickly with pre-integrated technology to make
> > > your job easier Download IBM WebSphere Application Server v.1.0.1 based
> > > on Apache Geronimo
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=12164
> > >2 _______________________________________________
> > > Jruby-devel mailing list
> > > Jruby-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/jruby-devel
> >
> > --
> > Charles Oliver Nutter @ headius.blogspot.com
> > JRuby Developer @ jruby.sourceforge.net
> > Application Architect @ www.ventera.com
>
> --
> Charles Oliver Nutter @ headius.blogspot.com
> JRuby Developer @ jruby.sourceforge.net
> Application Architect @ www.ventera.com
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
> _______________________________________________
> Jruby-devel mailing list
> Jruby-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jruby-devel


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel



--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to