public class ResourceInformationCollector extends java.lang.Object implements IResourceInformationProcessor
IResourceInformationProcessor
that can be used to collect
ResourceInformation
objects into a list.
It supports an optional filter to specify which objects must be collected.Constructor and Description |
---|
ResourceInformationCollector()
A new instance with the default filter that matches all resources.
|
ResourceInformationCollector(ResourceInformationFilter resourceFilter)
A new instance with the given filter.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
continueProcessing() |
java.util.List<ResourceInformation> |
getCollectedResources() |
protected java.util.concurrent.atomic.AtomicBoolean |
getGoOn() |
protected ResourceInformationFilter |
getResFilter() |
protected java.util.List<ResourceInformation> |
getResult() |
protected boolean |
mustBeAddedToResult(ResourceInformation resource) |
boolean |
process(ResourceInformation resource)
Process the given spring bean and returns true if processing
should be continued, otherwise false.
|
public ResourceInformationCollector()
public ResourceInformationCollector(ResourceInformationFilter resourceFilter)
public boolean process(ResourceInformation resource)
InterruptableProcessor
process
in interface InterruptableProcessor<ResourceInformation>
resource
- The object to be processed (never null).public java.util.List<ResourceInformation> getCollectedResources()
protected boolean mustBeAddedToResult(ResourceInformation resource)
protected java.util.List<ResourceInformation> getResult()
protected boolean continueProcessing()
protected ResourceInformationFilter getResFilter()
protected java.util.concurrent.atomic.AtomicBoolean getGoOn()