|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cucumber.io.DelegatingResourceIteratorFactory
public class DelegatingResourceIteratorFactory
A ResourceIteratorFactory
implementation which delegates to
factories found by the ServiceLoader class.
Constructor Summary | |
---|---|
DelegatingResourceIteratorFactory()
Initializes a new instance of the DelegatingResourceIteratorFactory class. |
|
DelegatingResourceIteratorFactory(ResourceIteratorFactory fallback)
Initializes a new instance of the DelegatingResourceIteratorFactory class with a fallback factory. |
Method Summary | |
---|---|
Iterator<Resource> |
createIterator(URL url,
String path,
String suffix)
Creates an iterator for the given URL with the path and suffix. |
boolean |
isFactoryFor(URL url)
Gets a value indicating whether the factory can create iterators for the resource specified by the given URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingResourceIteratorFactory()
public DelegatingResourceIteratorFactory(ResourceIteratorFactory fallback)
fallback
- The fallback resource iterator factory to use when an
appropriate one couldn't be found otherwise.Method Detail |
---|
public boolean isFactoryFor(URL url)
ResourceIteratorFactory
isFactoryFor
in interface ResourceIteratorFactory
url
- The URL to check.
public Iterator<Resource> createIterator(URL url, String path, String suffix)
ResourceIteratorFactory
createIterator
in interface ResourceIteratorFactory
url
- The URL.path
- The path.suffix
- The suffix.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |