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
Stack of ResourceFinder instances.
Used to combine various finders into one instance.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ResourceFinderprivate static final Loggerprivate final Deque<ResourceFinder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Default implementation of#close()which does nothing.booleanhasNext()next()open()Open current resource.voidpush(ResourceFinder iterator) voidreset()Reset theResourceFinderinstance.Methods inherited from class AbstractResourceFinderAdapter
removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
LOGGER
-
stack
-
current
-
-
Constructor Details
-
CompositeResourceFinder
public CompositeResourceFinder()
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
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
-