public static interface AbstractAsyncManagedObjectSource.MetaDataContext<O extends Enum<O>,F extends Enum<F>>
Context for the
ManagedObjectSource.init(ManagedObjectSourceContext).-
Method Summary
Modifier and TypeMethodDescriptionaddDependency(Class<?> dependencyType) Adds a required dependency identified by an index into the order the dependency was added.addDependency(O key, Class<?> dependencyType) Adds a required dependency identified by the key.Adds a requiredExecutionStrategyidentified by an index into the order theExecutionStrategywas added.Adds a requiredFlowidentified by the key.<E> voidaddManagedObjectExtension(Class<E> interfaceType, ExtensionFactory<E> extensionInterfaceFactory) Adds aManagedObjectExtensionMetaDatainstance.Obtains theManagedObjectSourceContext.voidsetManagedObjectClass(Class<? extends ManagedObject> managedObjectClass) Specifies the type of theManagedObject.voidsetObjectClass(Class<?> objectClass) Specifies the type of the object returned from theManagedObject.
-
Method Details
-
getManagedObjectSourceContext
ManagedObjectSourceContext<F> getManagedObjectSourceContext()Obtains theManagedObjectSourceContext.- Returns:
ManagedObjectSourceContext.
-
setObjectClass
Specifies the type of the object returned from theManagedObject.- Parameters:
objectClass- Object type.
-
setManagedObjectClass
Specifies the type of theManagedObject.- Parameters:
managedObjectClass-ManagedObjecttype.
-
addDependency
AbstractAsyncManagedObjectSource.DependencyLabeller<O> addDependency(O key, Class<?> dependencyType) Adds a required dependency identified by the key.- Parameters:
key-Enumto identify the dependency.dependencyType- Type the dependency is required to extend/implement.- Returns:
AbstractAsyncManagedObjectSource.DependencyLabellerto possibly label the required dependency.
-
addDependency
Adds a required dependency identified by an index into the order the dependency was added.- Parameters:
dependencyType- Type the dependency is required to extend/implement.- Returns:
AbstractAsyncManagedObjectSource.DependencyLabellerto possibly label the required dependency.
-
addFlow
Adds a requiredFlowidentified by the key.- Parameters:
key-Enumto identify theFlow.argumentType- Type of argument passed to theFlow.- Returns:
AbstractAsyncManagedObjectSource.Labellerto possibly label theFlow.
-
addFlow
- Parameters:
argumentType- Type of argument passed to theFlow.- Returns:
AbstractAsyncManagedObjectSource.Labellerto possibly label theFlow.
-
addExecutionStrategy
AbstractAsyncManagedObjectSource.ExecutionLabeller addExecutionStrategy()Adds a requiredExecutionStrategyidentified by an index into the order theExecutionStrategywas added.- Returns:
AbstractAsyncManagedObjectSource.ExecutionLabellerto possibly label theExecutionStrategy.
-
addManagedObjectExtension
<E> void addManagedObjectExtension(Class<E> interfaceType, ExtensionFactory<E> extensionInterfaceFactory) Adds aManagedObjectExtensionMetaDatainstance.- Type Parameters:
E- Extension interface type.- Parameters:
interfaceType- Type of the extension interface supported by theManagedObjectinstances.extensionInterfaceFactory-ExtensionFactory.
-