org.apache.geronimo.ews.ws4j2ee.toWs
Class AbstractWriter
java.lang.Object
org.apache.geronimo.ews.ws4j2ee.toWs.AbstractWriter
- All Implemented Interfaces:
- Writer
- Direct Known Subclasses:
- EJBDDWriter, GeronimoDDWriter, HandlerWriter, JavaClassWriter, JavaInterfaceWriter, JBossDDWriter, JOnASDDWriter
- public abstract class AbstractWriter
- extends java.lang.Object
- implements Writer
This is a conveniance class to wite the Writers
- Author:
- Srinath Perera(hemapani@opensource.lk)
Field Summary |
protected J2EEWebServiceContext |
j2eewscontext
|
protected static org.apache.commons.logging.Log |
log
this parameter act as a mediator, It contains all the information
this will be passed to the each writer. |
protected java.io.PrintWriter |
out
|
Method Summary |
protected void |
cleanUp()
|
protected boolean |
isOverWrite()
|
protected void |
prepare()
|
void |
write()
The method writeCode() of the Writer should write the file Associated
with this writer. |
protected abstract void |
writeCode()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
this parameter act as a mediator, It contains all the information
this will be passed to the each writer. This will make sure
even if the information that should passed around it will keep
method signatures intact.
j2eewscontext
protected J2EEWebServiceContext j2eewscontext
out
protected java.io.PrintWriter out
AbstractWriter
public AbstractWriter(J2EEWebServiceContext j2eewscontext,
java.lang.String filename)
throws GenerationFault
writeCode
protected abstract void writeCode()
throws GenerationFault
- Throws:
GenerationFault
prepare
protected final void prepare()
throws GenerationFault
- Throws:
GenerationFault
cleanUp
protected final void cleanUp()
throws GenerationFault
- Throws:
GenerationFault
isOverWrite
protected boolean isOverWrite()
write
public final void write()
throws GenerationFault
- Description copied from interface:
Writer
- The method writeCode() of the Writer should write the file Associated
with this writer.
- Specified by:
write
in interface Writer
- Throws:
GenerationFault
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.