Interface ManagedObjectTypeBuilder
-
public interface ManagedObjectTypeBuilderBuilder for theManagedObjectTypeto validate the loadedManagedObjectTypefrom theManagedObjectSource.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDependency(java.lang.Enum<?> key, java.lang.Class<?> type, java.lang.String typeQualifier)Convenience method to add aManagedObjectDependencyTypebased on the key.voidaddDependency(java.lang.String name, java.lang.Class<?> type, java.lang.String typeQualifier, int index, java.lang.Enum<?> key, java.lang.Class<?>... annotationTypes)Adds aManagedObjectDependencyType.voidaddExecutionStrategy(java.lang.String executionStrategyName)Adds anExecutionStrategyType.voidaddExtensionInterface(java.lang.Class<?> extensionInterface)Adds an extension interface.voidaddFlow(java.lang.Enum<?> key, java.lang.Class<?> argumentType)Convenience method to add aManagedObjectFlowTypebased on the key.voidaddFlow(java.lang.String name, java.lang.Class<?> argumentType, int index, java.lang.Enum<?> key)Adds aManagedObjectFlowType.voidaddFunctionDependency(java.lang.String name, java.lang.Class<?> type)voidaddTeam(java.lang.String teamName)Adds aManagedObjectTeamType.<D extends java.lang.Enum<D>>
ManagedObjectType<D>build()Builds theManagedObjectType.voidsetInput(boolean isInput)Flags theManagedObjectSourceas possibly being able to trigger aFlow.voidsetObjectClass(java.lang.Class<?> objectClass)Specifies theObjectclass returned from theManagedObject.
-
-
-
Method Detail
-
setObjectClass
void setObjectClass(java.lang.Class<?> objectClass)
Specifies theObjectclass returned from theManagedObject.- Parameters:
objectClass- Class of theObjectreturned from theManagedObject.
-
setInput
void setInput(boolean isInput)
Flags theManagedObjectSourceas possibly being able to trigger aFlow.- Parameters:
isInput-trueif 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
ManagedObjectDependencyTypebased on the key.Both the
nameandindexare 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
ManagedObjectFlowTypebased on the key.Both the
nameandindexare 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.
-
-