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 BeamDataOperator
create(Repository repo)
Create theDataOperator
instance.java.lang.String
getOperatorName()
Retrieve symbolic name of the operator.boolean
isOfType(java.lang.Class<? extends DataOperator> cls)
Check if theDataOperator
produced by this factory is of given class type.
-
-
-
Method Detail
-
getOperatorName
public java.lang.String getOperatorName()
Description copied from interface:DataOperatorFactory
Retrieve symbolic name of the operator. This name can then be used in call toRepository.hasOperator(String)
.- Specified by:
getOperatorName
in interfaceDataOperatorFactory<BeamDataOperator>
- Returns:
- name of the produced operator
-
isOfType
public boolean isOfType(java.lang.Class<? extends DataOperator> cls)
Description copied from interface:DataOperatorFactory
Check if theDataOperator
produced by this factory is of given class type.- Specified by:
isOfType
in interfaceDataOperatorFactory<BeamDataOperator>
- Parameters:
cls
- the class type of the operator- Returns:
true
if this factory produces given type
-
create
public BeamDataOperator create(Repository repo)
Description copied from interface:DataOperatorFactory
Create theDataOperator
instance.- Specified by:
create
in interfaceDataOperatorFactory<BeamDataOperator>
- Parameters:
repo
- repository- Returns:
- instance of the operator
-
-