org.jvending.provisioning.stocking.handler
Interface DescriptorHandler

All Known Implementing Classes:
JadHandler

public interface DescriptorHandler

Provides a service for obtaining content for a specific descriptor, such as a JAD or JNLP descriptor. The developer will implement a class based upon the format of the descriptor.

Since:
1.3a
Author:
Shane Isbell

Method Summary
 java.util.List getContentFiles(DescriptorFileType descriptorFileType, java.util.Map contentMap)
          Obtains a List of ContentFiles associated with a descriptor.
 void setRepositoryRegistry(org.jvending.registry.RepositoryRegistry repositoryRegistry)
          Mutator for RepositoryRegistry
 

Method Detail

setRepositoryRegistry

void setRepositoryRegistry(org.jvending.registry.RepositoryRegistry repositoryRegistry)
Mutator for RepositoryRegistry

Parameters:
repositoryRegistry -

getContentFiles

java.util.List getContentFiles(DescriptorFileType descriptorFileType,
                               java.util.Map contentMap)
                               throws StockingException
Obtains a List of ContentFiles associated with a descriptor. Never returns a null value for the list. The implementation MUST NOT modify the contentMap. Such events must be handled outside of a DescriptorHandler context.

Parameters:
descriptorFileType -
contentMap - contains descriptors and bundles.
Returns:
List of ContentFiles
Throws:
StockingException - the handler is unable to process a valid list of ContentFiles


Copyright 2006 null. All Rights Reserved.