org.apache.ws.jaxme
Interface JMManager

All Known Implementing Classes:
Configuration.Manager

public interface JMManager

A JMManager controls the object factory (aka JAXBContext) for a given document type. The document type is both identified by its QName and its interface, which is extending JMElement.

Version:
$Id: JMManager.java,v 1.2 2003/10/20 20:32:42 jochen Exp $
Author:
Jochen Wiedmann

Method Summary
 java.lang.Class getElementClass()
          Returns the implementation class of the interface returned by getElementInterface().
 java.lang.Class getElementInterface()
          Returns the interface matching the document type.
 JAXBContextImpl getFactory()
          Returns the JAXBContextImpl, that created this manager.
 java.lang.Class getHandlerClass()
          Returns the document types handler class.
 java.lang.Class getMarshallerClass()
          Returns the document types marshaller class.
 java.lang.Class getPmClass()
          Returns the persistency class.
 java.lang.String getProperty(java.lang.String pName)
          Returns a property value, which is used to configure the manager.
 QName getQName()
          Returns the QName of the document type that this Manager controls.
 

Method Detail

getProperty

public java.lang.String getProperty(java.lang.String pName)

Returns a property value, which is used to configure the manager. The property value is set in the configuration file.

Parameters:
pName - The property name
Returns:
pValue The property value; null, if the property is not set.

getFactory

public JAXBContextImpl getFactory()

Returns the JAXBContextImpl, that created this manager.


getQName

public QName getQName()

Returns the QName of the document type that this Manager controls.


getElementInterface

public java.lang.Class getElementInterface()

Returns the interface matching the document type. This must be a subinterface of JMElement.


getElementClass

public java.lang.Class getElementClass()

Returns the implementation class of the interface returned by getElementInterface().


getHandlerClass

public java.lang.Class getHandlerClass()

Returns the document types handler class. This class must be implementing JMHandler and it must be able to convert the document type controlled by the manager into objects implementing the element interface.


getMarshallerClass

public java.lang.Class getMarshallerClass()

Returns the document types marshaller class. This class must be implementing JMXmlSerializer and it must be able to convert objects implementing the element interface into a stream of SAX events.


getPmClass

public java.lang.Class getPmClass()

Returns the persistency class. The persistency class must be able to store documents in a database, update, delete or retrieve them.