Re: WeavingURLClassLoader does not follow jar Class-Paths

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: WeavingURLClassLoader does not follow jar Class-Paths

Alexandre Vasseur
Mike,

Could you describe some more your use case. We could see if it will be
adressed thru the load time weaving things that will surface in M3
(based on -javaagent for Java 5 - tell us if you would like it on 1.3
/ 1.4 ).
Perhaps the load time weaving (that will require at least a JVM
option) will be too much for what you are trying to do ?

Alex

On 6/10/05, Wes Isberg <[hidden email]> wrote:

> Hi -
>
> Sorry, this looks like another area where WeavingClassLoader
> is more demonstration- than production-quality.  If someone
> wants to make this work, we'd welcome a patch via an enhancement
> request.
>
> Thanks for pointing this out.
> Wes
>
> > ------------Original Message------------
> > From: Mike Haladin <[hidden email]>
> > To: [hidden email]
> > Date: Tue, Jun-7-2005 7:51 AM
> > Subject: [aspectj-dev] WeavingURLClassLoader does not follow jar Class-Paths
> >
> > Hello,
> >
> >       I am attempting to replace my project's customized URLClassLoader with
> > the WeavingURLClassLoader.  However I find this difficult as it appears
> > that WeavingURLClassLoader does not follow the class-path in the
> > manifest of the provided jar files.
> >
> > Do I need to give it a full list of all jar files needed to the
> > WeavingURLClassLoader? (In my code below this would be libs)
> >
> > or is there a way to force WeavingURLClassLoader to also weave and load
> > the jars in the manifest Class-Path of the jars passed to it in
> > variable
> > libs?
> >
> >
> > pointcut classloaderurl(URL[] libs, ClassLoader parent): call
> > (URLClassLoader.new(..)) && args(libs, parent) && !this(classweaver);
> >
> >  URLClassLoader around (URL[] libs, ClassLoader parent) :
> > classloaderurl(libs,parent)
> >     {
> >       URL[] aspectURLs;
> >
> >         URL url = null;
> >
> >         List urlList = new ArrayList();
> >
> >         try
> >         {
> >
> >               url = makeURL("myaspect.jar");
> >
> >               if (url != null) urlList.add(url);
> >
> >         }
> >         catch(URISyntaxException e)
> >         {
> >
> >         }
> >
> > //      Add the Aspect URLs
> >
> >         aspectURLs = new URL[urlList.size()];
> >
> >       return(new WeavingURLClassLoader (libs, aspectURLs, parent));
> >
> >     }
> >
> > thanks,
> > Mike Haladin
> >
> > --
> >
> > _______________________________________________
> > aspectj-dev mailing list
> > [hidden email]
> > https://dev.eclipse.org/mailman/listinfo/aspectj-dev
> >
>
> _______________________________________________
> aspectj-dev mailing list
> [hidden email]
> https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>
_______________________________________________
aspectj-dev mailing list
[hidden email]
https://dev.eclipse.org/mailman/listinfo/aspectj-dev
Loading...