KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > clazzy > DefaultLoaderSelector


1 package org.sapia.clazzy;
2
3 import org.sapia.clazzy.loader.Loader;
4
5 /**
6  * This class implements a <code>ClassLoaderSelector</code> that accepts
7  * "everything" (both of its methods systematically return <code>true</code>).
8  *
9  * @author Yanick Duchesne
10  *
11  * <dl>
12  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2004 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
13  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
14  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
15  * </dl>
16  */

17 public class DefaultLoaderSelector implements LoaderSelector{
18   
19   /**
20    * @see org.sapia.clazzy.LoaderSelector#acceptsClass(java.lang.String, org.sapia.clazzy.loader.Loader)
21    */

22   public boolean acceptsClass(String JavaDoc className, Loader loader) {
23     return true;
24   }
25   
26   /**
27    * @see org.sapia.clazzy.LoaderSelector#acceptsResource(java.lang.String, org.sapia.clazzy.loader.Loader)
28    */

29   public boolean acceptsResource(String JavaDoc resourceName, Loader loader) {
30     return true;
31   }
32
33 }
34
Popular Tags