public class SimpleDetectorStreamProcessorFactory extends AbstractDetectorStreamProcessorFactory
DetectorStreamProcessorFactory
interface.Modifier and Type | Field and Description |
---|---|
private Class<? extends DetectorStreamProcessor> |
processorImplementation |
Constructor and Description |
---|
SimpleDetectorStreamProcessorFactory()
The constructor.
|
SimpleDetectorStreamProcessorFactory(Class<? extends DetectorStreamProcessor> processorImplementation)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
DetectorStreamProcessor |
createProcessor()
This method gets a
DetectorStreamProcessor instance managed by this factory. |
void |
setProcessorImplementation(Class<DetectorStreamProcessor> processorImplementation) |
getLookaheadCount
private Class<? extends DetectorStreamProcessor> processorImplementation
public SimpleDetectorStreamProcessorFactory()
public SimpleDetectorStreamProcessorFactory(Class<? extends DetectorStreamProcessor> processorImplementation)
processorImplementation
- is the processor-implementation
.public void setProcessorImplementation(Class<DetectorStreamProcessor> processorImplementation)
processorImplementation
- is the processorImplementation to setpublic DetectorStreamProcessor createProcessor()
DetectorStreamProcessorFactory
DetectorStreamProcessor
instance managed by this factory. Typically the factory will
create a new instance per request
. However if a DetectorStreamProcessor
is
thread-safe the factory can always return the same instance.DetectorStreamProcessor
instance.Copyright © 2001–2016 mmm-Team. All rights reserved.