Package cz.o2.proxima.direct.core
Class DirectDataOperatorFactory
- java.lang.Object
-
- cz.o2.proxima.direct.core.DirectDataOperatorFactory
-
- All Implemented Interfaces:
DataOperatorFactory<DirectDataOperator>
@AutoService(DataOperatorFactory.class) public class DirectDataOperatorFactory extends java.lang.Object implements DataOperatorFactory<DirectDataOperator>
Factory forDirectDataOperator
.
-
-
Constructor Summary
Constructors Constructor Description DirectDataOperatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectDataOperator
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
-
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<DirectDataOperator>
- Parameters:
cls
- the class type of the operator- Returns:
true
if this factory produces given type
-
create
public DirectDataOperator create(Repository repo)
Description copied from interface:DataOperatorFactory
Create theDataOperator
instance.- Specified by:
create
in interfaceDataOperatorFactory<DirectDataOperator>
- Parameters:
repo
- repository- Returns:
- instance of the operator
-
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<DirectDataOperator>
- Returns:
- name of the produced operator
-
-