Package cz.o2.proxima.beam.core
Class BeamDataOperatorFactory
- java.lang.Object
-
- cz.o2.proxima.beam.core.BeamDataOperatorFactory
-
- All Implemented Interfaces:
DataOperatorFactory<BeamDataOperator>
@AutoService(DataOperatorFactory.class) public class BeamDataOperatorFactory extends java.lang.Object implements DataOperatorFactory<BeamDataOperator>
-
-
Constructor Summary
Constructors Constructor Description BeamDataOperatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeamDataOperatorcreate(Repository repo)Create theDataOperatorinstance.java.lang.StringgetOperatorName()Retrieve symbolic name of the operator.booleanisOfType(java.lang.Class<? extends DataOperator> cls)Check if theDataOperatorproduced by this factory is of given class type.
-
-
-
Method Detail
-
getOperatorName
public java.lang.String getOperatorName()
Description copied from interface:DataOperatorFactoryRetrieve symbolic name of the operator. This name can then be used in call toRepository.hasOperator(String).- Specified by:
getOperatorNamein interfaceDataOperatorFactory<BeamDataOperator>- Returns:
- name of the produced operator
-
isOfType
public boolean isOfType(java.lang.Class<? extends DataOperator> cls)
Description copied from interface:DataOperatorFactoryCheck if theDataOperatorproduced by this factory is of given class type.- Specified by:
isOfTypein interfaceDataOperatorFactory<BeamDataOperator>- Parameters:
cls- the class type of the operator- Returns:
trueif this factory produces given type
-
create
public BeamDataOperator create(Repository repo)
Description copied from interface:DataOperatorFactoryCreate theDataOperatorinstance.- Specified by:
createin interfaceDataOperatorFactory<BeamDataOperator>- Parameters:
repo- repository- Returns:
- instance of the operator
-
-