Interface ManagedFunctionTypeBuilder<D extends java.lang.Enum<D>,F extends java.lang.Enum<F>>
-
- All Known Implementing Classes:
ManagedFunctionTypeImpl
public interface ManagedFunctionTypeBuilder<D extends java.lang.Enum<D>,F extends java.lang.Enum<F>>
- Author:
- Daniel Sagenschneider
-
-
Method Summary
-
-
-
Method Detail
-
setFunctionFactory
ManagedFunctionTypeBuilder<D,F> setFunctionFactory(ManagedFunctionFactory<D,F> functionFactory)
Specifies theManagedFunctionFactory
to create theManagedFunction
.- Parameters:
functionFactory
-ManagedFunctionFactory
to create theManagedFunction
.- Returns:
this
.
-
addAnnotation
ManagedFunctionTypeBuilder<D,F> addAnnotation(java.lang.Object annotation)
Adds an annotation.- Parameters:
annotation
- Annotation.- Returns:
this
.
-
setReturnType
ManagedFunctionTypeBuilder<D,F> setReturnType(java.lang.Class<?> returnType)
Specifies the type ofObject
returned from theManagedFunction
that is to be used as the argument to the nextManagedFunction
.- Parameters:
returnType
- Return type of theManagedFunction
.- Returns:
this
.
-
addObject
ManagedFunctionObjectTypeBuilder<D> addObject(java.lang.Class<?> objectType)
Adds a
ManagedFunctionObjectTypeBuilder
to theManagedFunctionTypeBuilder
definition.Should the dependent
Object
instances beIndexed
, the order they are added is the order of indexing (starting at 0).- Parameters:
objectType
- Type of the dependentObject
.- Returns:
ManagedFunctionObjectTypeBuilder
to provide thetype definition
of the added dependentObject
.
-
addFlow
ManagedFunctionFlowTypeBuilder<F> addFlow()
Adds a
ManagedFunctionFlowTypeBuilder
to theManagedFunctionTypeBuilder
definition.Should the
Flow
instigation beIndexed
, the order they are added is the order of indexing (starting at 0).- Returns:
ManagedFunctionFlowTypeBuilder
to provide thetype definition
of the possible instigatedFlow
by theManagedFunction
.
-
addEscalation
<E extends java.lang.Throwable> ManagedFunctionEscalationTypeBuilder addEscalation(java.lang.Class<E> escalationType)
Adds aManagedFunctionEscalationTypeBuilder
to theManagedFunctionTypeBuilder
definition.- Type Parameters:
E
-Escalation
type.- Parameters:
escalationType
- Type to be handled by anEscalationFlow
.- Returns:
ManagedFunctionEscalationTypeBuilder
to provide thetype definition
.
-
-