org.apache.ws.jaxme

Interface JMManager

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.

Method Summary

JMSAXDriver
getDriver()
Returns an instance of the document types driver class.
Class
getDriverClass()
Returns the document types driverr class.
Class
getElementInterface()
Returns the interface matching the document type.
Object
getElementJ()
Returns an instance of the element class.
Object
getElementS()
Returns an instance of the element class.
JAXBContextImpl
getFactory()
Returns the JAXBContextImpl, that created this manager.
JMSAXElementParser
getHandler()
Returns an instance of the document types handler class.
Class
getHandlerClass()
Returns the document types handler class.
Class
getPmClass()
Returns the persistency class.
String
getProperty(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 Details

getDriver

public JMSAXDriver getDriver()
            throws SAXException
Returns an instance of the document types driver class.

getDriverClass

public Class getDriverClass()
Returns the document types driverr class.

getElementInterface

public Class getElementInterface()
Returns the interface matching the document type. Usually, this is a a subinterface of JMElement. However, for support of POJO's, we should not depend on this.

getElementJ

public Object getElementJ()
            throws JAXBException
Returns an instance of the element class. Same as getElementS(), except that it throws a different exception.

getElementS

public Object getElementS()
            throws SAXException
Returns an instance of the element class. Same as getElementJ(), except that it throws a different exception.

getFactory

public JAXBContextImpl getFactory()
Returns the JAXBContextImpl, that created this manager.

getHandler

public JMSAXElementParser getHandler()
            throws SAXException
Returns an instance of the document types handler class.

getHandlerClass

public Class getHandlerClass()
Returns the document types handler class.

getPmClass

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

getProperty

public String getProperty(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.

getQName

public QName getQName()
Returns the QName of the document type that this Manager controls.