avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: Attributes Proof of Concept
Date Tue, 12 Aug 2003 13:01:35 GMT
Leo Sutic wrote:
> OK, I have added some code to scan ClassLoaders:
> 
> URLClassLoader cl1 = new URLClassLoader (new URL[]{new File
> ("api/target/cl1/").toURL ()}, getClass().getClassLoader ());
>         URLClassLoader cl2 = new URLClassLoader (new URL[]{new File
> ("api/target/cl2/cl2.jar").toURL ()}, getClass().getClassLoader ());
> 
>         ClassLoaderUtil clUtil = ClassLoaderUtil.getClassLoaderUtil ();
> 
>         Collection cl1Classes = clUtil.getClasses (cl1);
>         Collection cl2Classes = clUtil.getClasses (cl2);
> 
>         System.out.println (cl1Classes);
>         System.out.println (cl2Classes);
> 
> Its in avalon-sandbox/attributes.
> 
> In addition, there's an:
> public static Collection getClassesWithAttributeType (Collection classes,
> Class attributeClass)
> 
> in Attributes.
> 
> Will this fulfill your needs?

I believe so.  Excellent work!


-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message