Class CompositeResourceFinder
- java.lang.Object
-
- org.glassfish.jersey.server.internal.AbstractResourceFinderAdapter
-
- org.glassfish.jersey.server.internal.scanning.CompositeResourceFinder
-
- All Implemented Interfaces:
AutoCloseable,Iterator<String>,ResourceFinder
public final class CompositeResourceFinder extends AbstractResourceFinderAdapter
StackofResourceFinderinstances. Used to combine various finders into one instance.- Author:
- Pavel Bucek
-
-
Constructor Summary
Constructors Constructor Description CompositeResourceFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Default implementation of#close()which does nothing.booleanhasNext()Stringnext()InputStreamopen()Open current resource.voidpush(ResourceFinder iterator)voidreset()Reset theResourceFinderinstance.-
Methods inherited from class org.glassfish.jersey.server.internal.AbstractResourceFinderAdapter
remove
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public String next()
-
open
public InputStream open()
Description copied from interface:ResourceFinderOpen current resource.- Returns:
- input stream from which current resource can be loaded.
-
close
public void close()
Description copied from class:AbstractResourceFinderAdapterDefault implementation of#close()which does nothing.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResourceFinder- Overrides:
closein classAbstractResourceFinderAdapter
-
reset
public void reset()
Description copied from interface:ResourceFinderReset theResourceFinderinstance. Upon calling this method the implementing class MUST reset its internal state to the initial state.
-
push
public void push(ResourceFinder iterator)
-
-