Class ClassFinderImpl
java.lang.Object
org.apache.axis2.jaxws.message.databinding.impl.ClassFinderImpl
- All Implemented Interfaces:
ClassFinder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassesFromJarFile(String pkg, ClassLoader cl) This method reads all the classes from given package in a jar file.voidupdateClassPath(String filePath, ClassLoader cl) This method will be used to add addition paths to existing classpath.
-
Constructor Details
-
ClassFinderImpl
public ClassFinderImpl()
-
-
Method Details
-
getClassesFromJarFile
public ArrayList<Class> getClassesFromJarFile(String pkg, ClassLoader cl) throws ClassNotFoundException Description copied from interface:ClassFinderThis 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:
getClassesFromJarFilein interfaceClassFinder- Returns:
- Throws:
ClassNotFoundException
-
updateClassPath
Description copied from interface:ClassFinderThis 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:
updateClassPathin interfaceClassFinder- Parameters:
filePath- : path of the location where wrapper classes may be stored. example a cache folder.- Throws:
Exception
-