KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > services > ClassFinder


1 package org.apache.tapestry.services;
2
3 /**
4  * Used to search for a class within a list of packages. Available as service tapestry.ClassFinder.
5  *
6  * @author Howard Lewis Ship
7  * @since 4.0
8  */

9 public interface ClassFinder
10 {
11     /**
12      * Searches for a class within a list of packages, which always includes the default package.
13      *
14      * @param packageList
15      * a comma seperated list of package named (i.e., "java.lang,java.util")
16      * @param className
17      * the name of the class to search for. This may be just a class name, or even a
18      * partial class name (i.e., "impl.Foo").
19      * @return the class, if found, or null if no class could be found in any of the packages
20      */

21
22     public Class JavaDoc findClass(String JavaDoc packageList, String JavaDoc className);
23 }
24
Popular Tags