O - the type of observer being filtered.public static class SCMSourceObserver.Filter<O extends SCMSourceObserver> extends SCMSourceObserver.Wrapped<O>
SCMSourceObserver.Filter<O extends SCMSourceObserver>, SCMSourceObserver.ProjectObserver, SCMSourceObserver.Wrapped<O extends SCMSourceObserver>| Constructor and Description |
|---|
Filter(O delegate,
String... projectNames)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getIncludes()
Returns the subset of "project" names that this observer is interested in or
null if
interested in all "project" names. |
boolean |
isObserving()
Returns information about whether the observer wants more results.
|
SCMSourceObserver.ProjectObserver |
observe(String projectName)
Declare that a new “project” such as a source repository has been found.
|
addAttribute, getContext, getListenerfilterpublic Set<String> getIncludes()
null if
interested in all "project" names.
Implementations should not assume that the SCMSourceObserver.getIncludes() will be honoured.
This method is designed to provide a hint to SCMNavigator implementations.
getIncludes in class SCMSourceObserver.Wrapped<O extends SCMSourceObserver>null.for the definition of "project" names@NonNull public SCMSourceObserver.ProjectObserver observe(@NonNull String projectName) throws IllegalArgumentException, IOException, InterruptedException
observe in class SCMSourceObserver.Wrapped<O extends SCMSourceObserver>projectName - a name of the project, such as a repository name within an organization; may be used as an
Item.getName()SCMSourceObserver.ProjectObserver.complete()IllegalArgumentException - if this projectName has already been encounteredIOException - if observing this projectName could not be completed due to an IOException.InterruptedException - if observing this projectName was interrupted.public boolean isObserving()
isObserving in class SCMSourceObserver.Wrapped<O extends SCMSourceObserver>true if the observer is still observing or false to signal that it is ok to stop early.Copyright © 2016–2019. All rights reserved.