Interface SupplierSource
-
- All Known Implementing Classes:
AbstractCosmosDbSupplierSource
,AbstractSupplierSource
,CosmosAsyncDbSupplierSource
,CosmosDbSupplierSource
,DynamoDbSupplierSource
,JaxRsSupplierSource
,ObjectifySupplierSource
,ServletSupplierSource
,SpringSupplierSource
,WebAppWoofExtensionService.WebAppSupplierSource
public interface SupplierSource
Supplies
ManagedObjectSource
instances.This allows for plugging in object libraries.
- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SupplierSourceSpecification
getSpecification()
Obtains theSupplierSourceSpecification
for thisSupplierSource
.void
supply(SupplierSourceContext context)
Supplies the necessaryManagedObjectSource
instances.void
terminate()
Terminates the supply contract.
-
-
-
Method Detail
-
getSpecification
SupplierSourceSpecification getSpecification()
Obtains the
SupplierSourceSpecification
for thisSupplierSource
.This enables the
SupplierSourceContext
to be populated with the necessary details as per thisSupplierSourceSpecification
in loading theInitialSupplierType
.- Returns:
SupplierSourceSpecification
.
-
supply
void supply(SupplierSourceContext context) throws java.lang.Exception
Supplies the necessaryManagedObjectSource
instances.- Parameters:
context
-SupplierSourceContext
.- Throws:
java.lang.Exception
- If fails to provide supply ofManagedObjectSource
instances.
-
terminate
void terminate()
Terminates the supply contract.
This should release all resources required by the supplier.
-
-