eu.esdihumboldt.util.resource.internal
Class BundleResolver
java.lang.Object
eu.esdihumboldt.util.resource.internal.BundleResolver
- All Implemented Interfaces:
- ResourceResolver
public class BundleResolver
- extends Object
- implements ResourceResolver
Resource resolver that attempts to find a resource at the URI path in the
bundle that registered the resolver as extension.
- Author:
- Simon Templer
Constructor Summary |
BundleResolver(org.eclipse.core.runtime.IConfigurationElement conf)
Create a bundle resolver. |
Method Summary |
com.google.common.io.InputSupplier<? extends InputStream> |
resolve(URI uri)
Resolves an URI to an input supplier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BundleResolver
public BundleResolver(org.eclipse.core.runtime.IConfigurationElement conf)
- Create a bundle resolver.
- Parameters:
conf
- the configuration element
resolve
public com.google.common.io.InputSupplier<? extends InputStream> resolve(URI uri)
throws ResourceNotFoundException
- Description copied from interface:
ResourceResolver
- Resolves an URI to an input supplier.
- Specified by:
resolve
in interface ResourceResolver
- Parameters:
uri
- the URI
- Returns:
- the input supplier
- Throws:
ResourceNotFoundException
- if the resource was not found by the
resolver- See Also:
ResourceResolver.resolve(URI)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d