Interface SupplierSource
- All Known Implementing Classes:
AbstractCosmosDbSupplierSource,AbstractSupplierSource,CosmosAsyncDbSupplierSource,CosmosDbSupplierSource,DynamoDbSupplierSource,FirestoreSupplierSource,JaxRsSupplierSource,ObjectifySupplierSource,ServletSupplierSource,SpringBeanSupplierSource,SpringSupplierSource,WebAppWoofExtensionService.WebAppSupplierSource
public interface SupplierSource
Supplies ManagedObjectSource instances.
This allows for plugging in object libraries.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionObtains theSupplierSourceSpecificationfor thisSupplierSource.voidsupply(SupplierSourceContext context) Supplies the necessaryManagedObjectSourceinstances.voidTerminates the supply contract.
-
Method Details
-
getSpecification
SupplierSourceSpecification getSpecification()Obtains the
SupplierSourceSpecificationfor thisSupplierSource.This enables the
SupplierSourceContextto be populated with the necessary details as per thisSupplierSourceSpecificationin loading theInitialSupplierType.- Returns:
SupplierSourceSpecification.
-
supply
Supplies the necessaryManagedObjectSourceinstances.- Parameters:
context-SupplierSourceContext.- Throws:
Exception- If fails to provide supply ofManagedObjectSourceinstances.
-
terminate
void terminate()Terminates the supply contract.
This should release all resources required by the supplier.
-