Package net.officefloor.jaxrs
Class JaxRsSupplierSource
- java.lang.Object
-
- net.officefloor.compile.spi.supplier.source.impl.AbstractSupplierSource
-
- net.officefloor.jaxrs.JaxRsSupplierSource
-
- All Implemented Interfaces:
SupplierSource
public class JaxRsSupplierSource extends AbstractSupplierSource
JAX-RSSupplierSource
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.supplier.source.impl.AbstractSupplierSource
AbstractSupplierSource.SpecificationContext
-
-
Constructor Summary
Constructors Constructor Description JaxRsSupplierSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
loadSpecification(AbstractSupplierSource.SpecificationContext context)
==================== SupplierSource ======================void
supply(SupplierSourceContext context)
Supplies the necessaryManagedObjectSource
instances.void
terminate()
Terminates the supply contract.-
Methods inherited from class net.officefloor.compile.spi.supplier.source.impl.AbstractSupplierSource
getSpecification
-
-
-
-
Method Detail
-
loadSpecification
protected void loadSpecification(AbstractSupplierSource.SpecificationContext context)
==================== SupplierSource ======================- Specified by:
loadSpecification
in classAbstractSupplierSource
- Parameters:
context
-AbstractSupplierSource.SpecificationContext
.
-
supply
public void supply(SupplierSourceContext context) throws java.lang.Exception
Description copied from interface:SupplierSource
Supplies the necessaryManagedObjectSource
instances.- Parameters:
context
-SupplierSourceContext
.- Throws:
java.lang.Exception
- If fails to provide supply ofManagedObjectSource
instances.
-
terminate
public void terminate()
Description copied from interface:SupplierSource
Terminates the supply contract.
This should release all resources required by the supplier.
-
-