org.apache.ace.deployment.streamgenerator.impl
Class StreamGeneratorImpl

java.lang.Object
  extended by org.apache.ace.deployment.streamgenerator.impl.StreamGeneratorImpl
All Implemented Interfaces:
StreamGenerator

public class StreamGeneratorImpl
extends Object
implements StreamGenerator

Stream generator for deployment packages. Communicates with a data provider to get the meta data for the streams. Part of the meta


Constructor Summary
StreamGeneratorImpl()
           
 
Method Summary
 InputStream getDeploymentPackage(String id, String version)
          Returns an input stream with the requested deployment package.
 InputStream getDeploymentPackage(String id, String fromVersion, String toVersion)
          Returns an input stream with the requested deployment fix package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamGeneratorImpl

public StreamGeneratorImpl()
Method Detail

getDeploymentPackage

public InputStream getDeploymentPackage(String id,
                                        String version)
                                 throws IOException
Returns an input stream with the requested deployment package.

Specified by:
getDeploymentPackage in interface StreamGenerator
Parameters:
id - the ID of the package
version - the version of the package
Returns:
an input stream
Throws:
IOException - when the stream could not be generated

getDeploymentPackage

public InputStream getDeploymentPackage(String id,
                                        String fromVersion,
                                        String toVersion)
                                 throws IOException
Returns an input stream with the requested deployment fix package.

Specified by:
getDeploymentPackage in interface StreamGenerator
Parameters:
id - the ID of the package.
fromVersion - the version of the target.
toVersion - the version the target should be in after applying the package.
Returns:
an input stream.
Throws:
IOException - when the stream could not be generated.


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.