org.systinet.wasp.dd
Class Writer

java.lang.Object
  extended byorg.systinet.wasp.dd.Writer

public abstract class Writer
extends java.lang.Object

The writer for saving deployment descriptor to a stream.

Since:
4.0
Component:
Core

Nested Class Summary
protected static interface Writer.WriterFactory
           
 
Field Summary
static java.lang.String WRITER_FACTORY
          Use this constant in getInstance to obtain DD writer factory from Context.
 
Constructor Summary
Writer()
           
 
Method Summary
static Writer createWriter()
          Creates the writer.
abstract  void write(DeploymentDescriptor dd, java.io.OutputStream stream)
          Writes the deployment descriptor to a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WRITER_FACTORY

public static final java.lang.String WRITER_FACTORY
Use this constant in getInstance to obtain DD writer factory from Context.

See Also:
Constant Field Values
Constructor Detail

Writer

public Writer()
Method Detail

createWriter

public static Writer createWriter()
Creates the writer.

Returns:
the writer being created

write

public abstract void write(DeploymentDescriptor dd,
                           java.io.OutputStream stream)
                    throws DeploymentException
Writes the deployment descriptor to a stream.

Parameters:
dd - the deployment descriptor to be written
stream - the stream to be written to
Throws:
DeploymentException - when something goes wrong