public interface DependencyResolver extends Closeable
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
findClass(DependencyResolver requestor,
String name)
Searches for a class with given name.
|
@Nullable URL |
findResource(DependencyResolver requestor,
String name)
Searches for a resource with given name.
|
void |
findResources(DependencyResolver requestor,
String name,
Collection<URL> target)
Searches for all resources with given name and collects them in the given
collection.
|
String |
getSimpleName()
Returns a simple displayable name for this resolver.
|
String getSimpleName()
Class<?> findClass(DependencyResolver requestor, String name)
requestor - The plugin for which the Class should be searched.
Parameter will be null if this method is not
called from any plugin (but from the application itself).name - The name of the class to search for. Must not be
null.null if none was found.@Nullable URL findResource(DependencyResolver requestor, String name)
requestor - The plugin for which the resource should be searched.
Parameter will be null if this method is not
called from any plugin (but from the application itself).name - The name of the resource to search for.null if none was found.void findResources(DependencyResolver requestor, String name, Collection<URL> target) throws IOException
requestor - The plugin for which the resources should be collected.
Parameter will be null if this method is not
called from any plugin (but from the application itself).name - The name of the resource. Must not be null.target - Target collection.IOException - If an IO error occurs.Copyright © 2014–2015. All rights reserved.