Class GettableChangesCollectorProvider
- java.lang.Object
-
- de.hybris.platform.outboundsync.job.impl.GettableChangesCollectorProvider
-
- All Implemented Interfaces:
ChangesCollectorProvider<GettableChangesCollector>
public class GettableChangesCollectorProvider extends java.lang.Object implements ChangesCollectorProvider<GettableChangesCollector>
AChangesCollectorProviderthat providesGettableChangesCollectors. The user of this ChangesCollectorProvider needs to supply the full class name of the GettableChangesCollector to instantiate when callinggetCollector().
-
-
Constructor Summary
Constructors Constructor Description GettableChangesCollectorProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GettableChangesCollectorcreateCollector(java.lang.Class clazz)Creates an instance of theclazzprovided.protected GettableChangesCollectordefaultCollector()Returns the defaultGettableChangesCollectorGettableChangesCollectorgetCollector()Gets a new instance of theGettableChangesCollector.protected java.lang.ClassgetCollectorClass(java.lang.String collectorClassName)Gets the class for the supplied collector class name.voidsetCollectorClass(java.lang.String collectorClassName)
-
-
-
Method Detail
-
getCollector
public GettableChangesCollector getCollector()
Gets a new instance of theGettableChangesCollector. If the collector class name supplied can't be instantiated dynamically, this method tries to instantiate theInMemoryGettableChangesCollector- Specified by:
getCollectorin interfaceChangesCollectorProvider<GettableChangesCollector>- Returns:
- A GettableChangesCollector
-
getCollectorClass
protected java.lang.Class getCollectorClass(java.lang.String collectorClassName)
Gets the class for the supplied collector class name. The class must also be assignable toGettableChangesCollector.- Returns:
- Collector class or null if the class fails to load or not assignable.
-
createCollector
protected GettableChangesCollector createCollector(java.lang.Class clazz)
Creates an instance of theclazzprovided. If the instantiation fails thedefaultCollector()is returned- Parameters:
clazz- Class to instantiate- Returns:
- An instance of a
GettableChangesCollector
-
defaultCollector
protected GettableChangesCollector defaultCollector()
Returns the defaultGettableChangesCollector- Returns:
- An instance of GettableChangesCollector
-
setCollectorClass
public void setCollectorClass(java.lang.String collectorClassName)
-
-