| 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 default <T> Class | |
| 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)Redeclares org. |
| 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)Redeclares org. |
| public Package | Returns: The Package.null if no such Package is found, or if the
ClassLoader call leads to an exception (LinkageError, e.g.).Loading a Package from the ClassLoader. |
| public <T> T |
| classForName | back to summary |
|---|---|
| public <T> Class Locate a class by name.
| |
| classForTypeName | back to summary |
|---|---|
public default <T> Class
| |
| 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. API Note The term "service" here does not refer to a
| |
| locateResource | back to summary |
|---|---|
| public URL locateResource(String name) Redeclares org. 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) Redeclares org. 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.
| |
| 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) | |