Class ClassFinderImpl
- java.lang.Object
-
- org.apache.axis2.jaxws.message.databinding.impl.ClassFinderImpl
-
- All Implemented Interfaces:
ClassFinder
public class ClassFinderImpl extends Object implements ClassFinder
-
-
Constructor Summary
Constructors Constructor Description ClassFinderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayList<Class>
getClassesFromJarFile(String pkg, ClassLoader cl)
This method reads all the classes from given package in a jar file.void
updateClassPath(String filePath, ClassLoader cl)
This method will be used to add addition paths to existing classpath.
-
-
-
Method Detail
-
getClassesFromJarFile
public ArrayList<Class> getClassesFromJarFile(String pkg, ClassLoader cl) throws ClassNotFoundException
Description copied from interface:ClassFinder
This method reads all the classes from given package in a jar file. It uses ClassLoader to find the given package in a jar file that is located in classpath.- Specified by:
getClassesFromJarFile
in interfaceClassFinder
- Returns:
- Throws:
ClassNotFoundException
-
updateClassPath
public void updateClassPath(String filePath, ClassLoader cl) throws Exception
Description copied from interface:ClassFinder
This method will be used to add addition paths to existing classpath. We may need to add classpath to search for jax-ws wrapper classes that applicaiton developer did not package.- Specified by:
updateClassPath
in interfaceClassFinder
- Parameters:
filePath
- : path of the location where wrapper classes may be stored. example a cache folder.- Throws:
Exception
-
-