Interface ManagedObjectTypeBuilder
-
public interface ManagedObjectTypeBuilder
Builder for theManagedObjectType
to validate the loadedManagedObjectType
from theManagedObjectSource
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDependency(java.lang.Enum<?> key, java.lang.Class<?> type, java.lang.String typeQualifier)
Convenience method to add aManagedObjectDependencyType
based on the key.void
addDependency(java.lang.String name, java.lang.Class<?> type, java.lang.String typeQualifier, int index, java.lang.Enum<?> key, java.lang.Class<?>... annotationTypes)
Adds aManagedObjectDependencyType
.void
addExecutionStrategy(java.lang.String executionStrategyName)
Adds anExecutionStrategyType
.void
addExtensionInterface(java.lang.Class<?> extensionInterface)
Adds an extension interface.void
addFlow(java.lang.Enum<?> key, java.lang.Class<?> argumentType)
Convenience method to add aManagedObjectFlowType
based on the key.void
addFlow(java.lang.String name, java.lang.Class<?> argumentType, int index, java.lang.Enum<?> key)
Adds aManagedObjectFlowType
.void
addFunctionDependency(java.lang.String name, java.lang.Class<?> type)
void
addTeam(java.lang.String teamName)
Adds aManagedObjectTeamType
.<D extends java.lang.Enum<D>>
ManagedObjectType<D>build()
Builds theManagedObjectType
.void
setInput(boolean isInput)
Flags theManagedObjectSource
as possibly being able to trigger aFlow
.void
setObjectClass(java.lang.Class<?> objectClass)
Specifies theObject
class returned from theManagedObject
.
-
-
-
Method Detail
-
setObjectClass
void setObjectClass(java.lang.Class<?> objectClass)
Specifies theObject
class returned from theManagedObject
.- Parameters:
objectClass
- Class of theObject
returned from theManagedObject
.
-
setInput
void setInput(boolean isInput)
Flags theManagedObjectSource
as possibly being able to trigger aFlow
.- Parameters:
isInput
-true
if can trigger aFlow
.
-
addDependency
void addDependency(java.lang.String name, java.lang.Class<?> type, java.lang.String typeQualifier, int index, java.lang.Enum<?> key, java.lang.Class<?>... annotationTypes)
Adds aManagedObjectDependencyType
.- Parameters:
name
- Name of theManagedObjectDependency
.type
- Type of theManagedObjectDependency
.typeQualifier
- Qualifier for the type ofManagedObjectDependency
.index
- Index of theManagedObjectDependency
.key
- Key identifying theManagedObjectDependency
.annotationTypes
- Types of the annotations for theManagedObjectDependency
.
-
addFunctionDependency
void addFunctionDependency(java.lang.String name, java.lang.Class<?> type)
- Parameters:
name
- Name of theManagedObjectFunctionDependency
.type
- Type of theManagedObjectFunctionDependency
.
-
addDependency
void addDependency(java.lang.Enum<?> key, java.lang.Class<?> type, java.lang.String typeQualifier)
Convenience method to add a
ManagedObjectDependencyType
based on the key.Both the
name
andindex
are extracted from the key.- Parameters:
key
- Key identifying theManagedObjectDependency
.type
- Type of theManagedObjectDependency
.typeQualifier
- Qualifier for the type ofManagedObjectDependency
.
-
addFlow
void addFlow(java.lang.String name, java.lang.Class<?> argumentType, int index, java.lang.Enum<?> key)
Adds aManagedObjectFlowType
.- Parameters:
name
- Name of theManagedObjectFlow
.argumentType
- Type of argument passed from theManagedObjectFlow
.index
- Index of theManagedObjectFlow
.key
- Key identifying theManagedObjectFlow
.
-
addFlow
void addFlow(java.lang.Enum<?> key, java.lang.Class<?> argumentType)
Convenience method to add a
ManagedObjectFlowType
based on the key.Both the
name
andindex
are extracted from the key.- Parameters:
key
- Key identifying theManagedObjectFlow
.argumentType
- Type of argument passed from theManagedObjectFlow
.
-
addTeam
void addTeam(java.lang.String teamName)
Adds aManagedObjectTeamType
.- Parameters:
teamName
- Name of theManagedObjectTeam
.
-
addExecutionStrategy
void addExecutionStrategy(java.lang.String executionStrategyName)
Adds anExecutionStrategyType
.- Parameters:
executionStrategyName
- Name of theExecutionStrategyType
.
-
addExtensionInterface
void addExtensionInterface(java.lang.Class<?> extensionInterface)
Adds an extension interface.- Parameters:
extensionInterface
- Extension interface.
-
build
<D extends java.lang.Enum<D>> ManagedObjectType<D> build()
Builds theManagedObjectType
.- Type Parameters:
D
- Dependency keys.- Returns:
ManagedObjectType
.
-
-