org.outerj.xreporter.datatype
Class DataTypeManagerImpl

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.outerj.xreporter.datatype.DataTypeManagerImpl
All Implemented Interfaces:
org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, DataTypeManager, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.thread.ThreadSafe

public class DataTypeManagerImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements DataTypeManager, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.component.Composable

Implementation of DataTypeManager. During initialisation this will read the data type catalog from an XML file. The format of this file is described in XReporter's documentation.


Field Summary
protected  org.apache.avalon.framework.component.ComponentManager componentManager
           
protected  java.io.File dataTypeCatalogFile
           
protected  java.util.HashMap dataTypesById
           
 
Fields inherited from interface org.outerj.xreporter.datatype.DataTypeManager
ROLE
 
Constructor Summary
DataTypeManagerImpl()
           
 
Method Summary
 void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
           
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 DataType createExtendedType(java.lang.String id, org.apache.avalon.framework.configuration.Configuration conf)
          Creates a new, anonymous data type based on an existing data type and the additional configuration information that is passed.
 DataType createType(org.apache.avalon.framework.configuration.Configuration configuration)
          Creates a new, anonymous data type based on the provided configuration.
 DataType getDataType(java.lang.String id)
          Get a data type from the data type catalog.
 void initialize()
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataTypeCatalogFile

protected java.io.File dataTypeCatalogFile

dataTypesById

protected java.util.HashMap dataTypesById

componentManager

protected org.apache.avalon.framework.component.ComponentManager componentManager
Constructor Detail

DataTypeManagerImpl

public DataTypeManagerImpl()
Method Detail

compose

public void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
             throws org.apache.avalon.framework.component.ComponentException
Specified by:
compose in interface org.apache.avalon.framework.component.Composable
Throws:
org.apache.avalon.framework.component.ComponentException

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception

getDataType

public DataType getDataType(java.lang.String id)
                     throws UnknownDataTypeIdException
Description copied from interface: DataTypeManager
Get a data type from the data type catalog.

Specified by:
getDataType in interface DataTypeManager
Throws:
UnknownDataTypeIdException

createExtendedType

public DataType createExtendedType(java.lang.String id,
                                   org.apache.avalon.framework.configuration.Configuration conf)
                            throws java.lang.Exception
Description copied from interface: DataTypeManager
Creates a new, anonymous data type based on an existing data type and the additional configuration information that is passed.

Specified by:
createExtendedType in interface DataTypeManager
Throws:
java.lang.Exception

createType

public DataType createType(org.apache.avalon.framework.configuration.Configuration configuration)
                    throws java.lang.Exception
Description copied from interface: DataTypeManager
Creates a new, anonymous data type based on the provided configuration.

Specified by:
createType in interface DataTypeManager
Throws:
java.lang.Exception