org.apache.pluto.descriptors.services.impl
Class AbstractCastorDescriptorService

java.lang.Object
  extended by org.apache.pluto.descriptors.services.impl.AbstractCastorDescriptorService
Direct Known Subclasses:
AbstractPortletAppDescriptorService, AbstractWebAppDescriptorService

abstract class AbstractCastorDescriptorService
extends java.lang.Object

Abstract deployment descriptor support class. This Base class provides support for reading and writing deployment descriptors using Castor.

Since:
Mar 5, 2005
Version:
$Id: AbstractCastorDescriptorService.java 156743 2005-03-10 05:50:30Z ddewolf $
Author:
David H. DeWolf

Field Summary
private  java.lang.String contextPath
           
 
Constructor Summary
protected AbstractCastorDescriptorService(java.lang.String contextPath)
          Default Constructor.
 
Method Summary
protected abstract  Mapping getCastorMapping()
           
 java.lang.String getContextPath()
           
protected abstract  java.lang.String getDTDUri()
           
protected  boolean getIgnoreExtraElements()
           
protected abstract  java.io.InputStream getInputStream()
           
protected abstract  java.io.OutputStream getOutputStream()
           
protected abstract  java.lang.String getPublicId()
           
protected  java.lang.Object readInternal()
          Read the and convert the descriptor into it's Object graph.
protected  void writeInternal(java.lang.Object object)
          Write the object graph to it's descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextPath

private java.lang.String contextPath
Constructor Detail

AbstractCastorDescriptorService

protected AbstractCastorDescriptorService(java.lang.String contextPath)
Default Constructor.

Method Detail

getContextPath

public java.lang.String getContextPath()

readInternal

protected java.lang.Object readInternal()
                                 throws java.io.IOException
Read the and convert the descriptor into it's Object graph.

Returns:
Throws:
java.io.IOException

writeInternal

protected void writeInternal(java.lang.Object object)
                      throws java.io.IOException
Write the object graph to it's descriptor.

Parameters:
object -
Throws:
java.io.IOException

getIgnoreExtraElements

protected boolean getIgnoreExtraElements()

getCastorMapping

protected abstract Mapping getCastorMapping()
                                     throws java.io.IOException,
                                            MappingException
Throws:
java.io.IOException
MappingException

getInputStream

protected abstract java.io.InputStream getInputStream()
                                               throws java.io.IOException
Throws:
java.io.IOException

getOutputStream

protected abstract java.io.OutputStream getOutputStream()
                                                 throws java.io.IOException
Throws:
java.io.IOException

getPublicId

protected abstract java.lang.String getPublicId()

getDTDUri

protected abstract java.lang.String getDTDUri()