org.freehep.xml.io
Interface XMLIOFactory

All Known Implementing Classes:
XMLIOFileFactory

public interface XMLIOFactory

Interface for object factories. The XMLIOFactories are meant to create objects in a minimal configuration. These objects will be then restored either by invoking their restore() method (if they implement the XMLIO interface) or by invoking the restore method on the XMLIOProxy responsible to save/restore the given object.

Version:
1.0
Author:
turri

Method Summary
 Object createObject(Class objClass)
          Create a given object in a minimal state.
 Class[] XMLIOFactoryClasses()
          Returns an array of Classes of the objects that the factory is able to create.
 

Method Detail

createObject

Object createObject(Class objClass)
                    throws IllegalArgumentException
Create a given object in a minimal state.

Parameters:
objClass - The Class of the object to be created.
Returns:
The corresponding object.
Throws:
An - IllegalArgumentException if an object of the given Class cannot be created.
IllegalArgumentException

XMLIOFactoryClasses

Class[] XMLIOFactoryClasses()
Returns an array of Classes of the objects that the factory is able to create.

Returns:
An array containing the Classes of the objects that this factory in able to create.


Copyright © 2000-2007 FreeHEP. All Rights Reserved.