|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvending.provisioning.stocking.handler.StockingHandler
public abstract class StockingHandler
Provides a way to preprocess PAR files prior to stocking them within the BundleRepository. The developer
is required to extend the class and implement the addParFile method. For the provisioning framework
to use this handler, a reference must be defined within the stocking-handlers.xml file. This is the source for
stocking PAR files, which is then followed by the StockingFilters preprocessing and ends
with the DataSink.
| Field Summary | |
|---|---|
protected StockingHandlerConfig |
stockingHandlerConfig
|
| Constructor Summary | |
|---|---|
StockingHandler()
|
|
| Method Summary | |
|---|---|
abstract long |
addParFile(java.io.InputStream inputStream,
ProviderContext providerContext)
Preprocesses a PAR file. |
void |
destroy()
Called when the provisioning framework takes the handler out of service. |
StockingHandlerConfig |
getStockingHandlerConfig()
Accessor for StockingHandlerConfig |
void |
init(StockingHandlerConfig stockingHandlerConfig)
Called when the provisioning framework puts the handler in service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected StockingHandlerConfig stockingHandlerConfig
| Constructor Detail |
|---|
public StockingHandler()
| Method Detail |
|---|
public abstract long addParFile(java.io.InputStream inputStream,
ProviderContext providerContext)
throws java.io.IOException
inputStream - PAR file
DataSink, which is
typically the BundleRepository
java.io.IOException
public void destroy()
throws StockingHandlerException
StockingHandlerException
public void init(StockingHandlerConfig stockingHandlerConfig)
throws StockingHandlerException
stockingHandlerConfig -
StockingHandlerExceptionpublic StockingHandlerConfig getStockingHandlerConfig()
StockingHandlerConfig
StockingHandlerConfig
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||