|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.yasl.jars.DynamicJarLoaderImpl
Handles loading classes or locating resources from jar files that are not in an application's classpath.
Constructor Summary | |
DynamicJarLoaderImpl()
|
|
DynamicJarLoaderImpl(DynamicJarLoaderStatus statusMonitor)
|
Method Summary | |
void |
cancelJarLoadingProcess()
|
List |
dynamicallyFindJarClasses(String jarFilePath)
Populates a list with YASLJarResource objects from the class files contained in the jar file or files referenced by the jarFilePath argument. |
List |
dynamicallyFindJarResources(String jarDirPath)
Populates a list with YASLJarResource objects from the non-class files contained in the jar file or files referenced by the jarFilePath argument. |
List |
dynamicallyFindJarResources(String jarDirPath,
Set extenders)
Populates a list with YASLJarResource objects from the non-class files contained in the jar file or files referenced by the jarFilePath argument. |
Map |
dynamicallyLoadJarClasses(String jarFilePath)
Loads any class files contained in the jar file or files referenced by the jarFilePath argument. |
void |
setStatusMonitor(DynamicJarLoaderStatus statusMonitor)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DynamicJarLoaderImpl()
public DynamicJarLoaderImpl(DynamicJarLoaderStatus statusMonitor)
Method Detail |
public void cancelJarLoadingProcess()
cancelJarLoadingProcess
in interface DynamicJarLoader
public void setStatusMonitor(DynamicJarLoaderStatus statusMonitor)
setStatusMonitor
in interface DynamicJarLoader
public Map dynamicallyLoadJarClasses(String jarFilePath) throws MalformedURLException, IOException, ClassNotFoundException
The classes loaded will be used to populate the classFilesMap with class names mapped to class instances.
dynamicallyLoadJarClasses
in interface DynamicJarLoader
jarFilePath
- String
MalformedURLException
IOException
ClassNotFoundException
public List dynamicallyFindJarClasses(String jarFilePath) throws MalformedURLException, IOException
dynamicallyFindJarClasses
in interface DynamicJarLoader
jarFilePath
- String
MalformedURLException
IOException
public List dynamicallyFindJarResources(String jarDirPath) throws MalformedURLException, IOException
dynamicallyFindJarResources
in interface DynamicJarLoader
jarDirPath
- String
MalformedURLException
IOException
public List dynamicallyFindJarResources(String jarDirPath, Set extenders) throws MalformedURLException, IOException
Users can limit the types of resources returned by adding their file extenders to the extenders set. For example, to only return a list of xml files, add "xml" to the extenders set.
If users pass in an empty set, all non-class file resources will be returned.
dynamicallyFindJarResources
in interface DynamicJarLoader
jarDirPath
- Stringextenders
- Set of file extenders
MalformedURLException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |