net.sf.mmm.util.io.base
Class SimpleDetectorStreamProcessorFactory
java.lang.Object
net.sf.mmm.util.io.base.AbstractDetectorStreamProcessorFactory
net.sf.mmm.util.io.base.SimpleDetectorStreamProcessorFactory
- All Implemented Interfaces:
- DetectorStreamProcessorFactory
public class SimpleDetectorStreamProcessorFactory
- extends AbstractDetectorStreamProcessorFactory
This is a simple implementation of the
DetectorStreamProcessorFactory interface.
- Since:
- 1.1.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
processorImplementation
private Class<? extends DetectorStreamProcessor> processorImplementation
- See Also:
setProcessorImplementation(Class)
SimpleDetectorStreamProcessorFactory
public SimpleDetectorStreamProcessorFactory()
- The constructor.
SimpleDetectorStreamProcessorFactory
public SimpleDetectorStreamProcessorFactory(Class<? extends DetectorStreamProcessor> processorImplementation)
- The constructor.
- Parameters:
processorImplementation - is the
processor-implementation.
setProcessorImplementation
public void setProcessorImplementation(Class<DetectorStreamProcessor> processorImplementation)
- Parameters:
processorImplementation - is the processorImplementation to set
createProcessor
public DetectorStreamProcessor createProcessor()
- This method gets a
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.
- Returns:
- the requested
DetectorStreamProcessor instance.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.