JVending is deployed from a WAR file within a Servlet container.
The ProvisioningContextImpl class implements the javax.provisioning.AdapterContext
and
the javax.provisioning.ProvisioningContext
interfaces, making it the central class
within the application. It also implements the ServletContextListener
interface so that the
ServletContainer will initialize it upon start up.
During the initialization, the class does the following:
javax.provisioning.DeliveryComponent
org.jvending.provisioning.stocking.StockingContext
. This, in turn:
org.jvending.provisioning.stocking.StockingComponent
org.jvending.provisioning.stocking.StockingContext
as
an attribute in the ServletContext