public class YPluginLoader
extends java.net.URLClassLoader
Constructor and Description |
---|
YPluginLoader(java.lang.String searchPath)
Constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
getInstance(java.lang.Class<T> mask,
java.lang.String instanceName)
Loads a class that implements or subclasses a specified class and matches a
specific name
|
<T> java.util.Set<java.lang.Class<T>> |
load(java.lang.Class<T> mask)
Loads the set of classes found in the search path that implement or subclass a
specified class
|
<T> java.util.Map<java.lang.String,java.lang.Class<T>> |
loadAsMap(java.lang.Class<T> mask) |
<T> java.util.Set<java.lang.Class<T>> |
loadInternal(java.lang.Class<T> mask)
Loads the set of classes that implement or subclass a specified class that are
members of the same package as that class
|
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public YPluginLoader(java.lang.String searchPath)
searchPath
- the path(s) to search for jar and class files. Multiple paths
can be specified, separated by semi-colons (;). Any
sub-directories are also searchedpublic <T> java.util.Set<java.lang.Class<T>> load(java.lang.Class<T> mask)
T
- mask
- the interface or super class to use as the basis of the searchpublic <T> java.util.Map<java.lang.String,java.lang.Class<T>> loadAsMap(java.lang.Class<T> mask)
public <T> java.util.Set<java.lang.Class<T>> loadInternal(java.lang.Class<T> mask)
T
- mask
- the interface or super class to use as the basis of the loadpublic <T> T getInstance(java.lang.Class<T> mask, java.lang.String instanceName)
T
- mask
- the interface or super class to use as the basis of the loadinstanceName
- the name of the class to load an instance ofCopyright © 2004-2014 The YAWL Foundation.