| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public < The returned class type. T> Class | Returns: The class referenceThe name of the class to locate className)Locate a class by name. |
| public <T> T | |
| public < The type of the service contract S> Collection | Returns: The ordered set of discovered services.The java type defining the service contract serviceContract)Discovers and instantiates implementations of the named service contract. |
| public URL | Returns: The located URL; may returnnull to indicate the resource was not foundThe resource name. name)Locate a resource by name (classpath lookup). |
| public List | Returns: The list of URL matching; may returnnull to indicate the resource was not foundThe resource name. name)Locate a series of resource by name (classpath lookup). |
| public InputStream | Returns: The stream of the located resource; may returnnull to indicate the resource was not foundThe resource name. name)Locate a resource by name (classpath lookup) and gets its stream. |
| public Package | Returns: the matching Package, or null.Loading a Package from the classloader. |
| public <T> T |
| classForName | back to summary |
|---|---|
| public <T> Class Locate a class by name.
| |
| generateProxy | back to summary |
|---|---|
| public <T> T generateProxy(InvocationHandler handler, Class<T>... interfaces) | |
| loadJavaServices | back to summary |
|---|---|
| public <S> Collection Discovers and instantiates implementations of the named service contract.
NOTE : the terms service here is used differently than
| |
| locateResource | back to summary |
|---|---|
| public URL locateResource(String name) Locate a resource by name (classpath lookup). | |
| locateResources | back to summary |
|---|---|
| public List Locate a series of resource by name (classpath lookup). | |
| locateResourceStream | back to summary |
|---|---|
| public InputStream locateResourceStream(String name) Locate a resource by name (classpath lookup) and gets its stream.
| |
| packageForNameOrNull | back to summary |
|---|---|
| public Package packageForNameOrNull(String packageName) Loading a Package from the classloader. In case it's not found or an
internal error (such as @see
| |
| workWithClassLoader | back to summary |
|---|---|
| public <T> T workWithClassLoader(ClassLoaderService. | |
| Modifier and Type | Method and Description |
|---|---|
| public T |
| doWork | back to summary |
|---|---|
| public T doWork(ClassLoader classLoader) | |