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 DirectDataOperatorcreate(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
-
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<DirectDataOperator>- Parameters:
cls- the class type of the operator- Returns:
trueif this factory produces given type
-
create
public DirectDataOperator create(Repository repo)
Description copied from interface:DataOperatorFactoryCreate theDataOperatorinstance.- Specified by:
createin interfaceDataOperatorFactory<DirectDataOperator>- Parameters:
repo- repository- Returns:
- instance of the operator
-
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<DirectDataOperator>- Returns:
- name of the produced operator
-
-