public class InjectableUriLocatorFactoryDecorator extends AbstractDecorator<UriLocatorFactory> implements UriLocatorFactory
getInstance(String) getInstance method is invoked.| Constructor and Description |
|---|
InjectableUriLocatorFactoryDecorator(UriLocatorFactory decorated) |
| Modifier and Type | Method and Description |
|---|---|
UriLocator |
getInstance(String uri) |
InputStream |
locate(String uri)
This implementation shows the problem with current design of locator implementation.
|
getDecoratedObject, getOriginalDecoratedObject, getOriginalDecoratedObject, toStringpublic InjectableUriLocatorFactoryDecorator(UriLocatorFactory decorated)
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.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.Copyright © 2008-2014. All Rights Reserved.