public final class InjectorAwareUriLocatorFactoryDecorator extends InjectorAwareDecorator<UriLocatorFactory> implements UriLocatorFactory
UriLocator with required fields before being used.| Modifier and Type | Method and Description |
|---|---|
static UriLocatorFactory |
decorate(UriLocatorFactory decorated,
Injector injector) |
UriLocator |
getInstance(String uri) |
InputStream |
locate(String uri)
Locates an InputStream for the given uri.
|
getInjectorgetDecoratedObject, getOriginalDecoratedObject, getOriginalDecoratedObject, toStringpublic static UriLocatorFactory decorate(UriLocatorFactory decorated, Injector injector)
public UriLocator getInstance(String uri)
getInstance in interface UriLocatorFactoryuri - to handle by the locator.UriLocator which is capable of handling provided uri. Returns null if no locator
found.public InputStream locate(String uri) throws IOException
locate in interface UriLocatorFactoryuri - to locate.InputStream of the resource.IOException - if uri is invalid or resource couldn't be located.Copyright © 2008-2013. All Rights Reserved.