ch.interlis.iox_j
Class DefaultIoxFactoryCollection

java.lang.Object
  extended by ch.interlis.iox_j.DefaultIoxFactoryCollection
All Implemented Interfaces:
IoxFactory, IoxFactoryCollection

public class DefaultIoxFactoryCollection
extends java.lang.Object
implements IoxFactoryCollection

This class provides a default implementation for the IoxFactoryCollection interface.

Author:
ceis

Constructor Summary
DefaultIoxFactoryCollection()
           
 
Method Summary
 IomObject createIomObject(java.lang.String type, java.lang.String oid)
          creates a IomObject with the given type and oid.
 void registerFactory(IoxFactory factory)
          adds a new factory in front of list of already registered factories.
 void removeFactory(IoxFactory factory)
          removes a previously registered factory from this collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIoxFactoryCollection

public DefaultIoxFactoryCollection()
                            throws IoxException
Throws:
IoxException
Method Detail

registerFactory

public void registerFactory(IoxFactory factory)
                     throws IoxException
Description copied from interface: IoxFactoryCollection
adds a new factory in front of list of already registered factories.

Specified by:
registerFactory in interface IoxFactoryCollection
Throws:
IoxException

removeFactory

public void removeFactory(IoxFactory factory)
                   throws IoxException
Description copied from interface: IoxFactoryCollection
removes a previously registered factory from this collection.

Specified by:
removeFactory in interface IoxFactoryCollection
Throws:
IoxException

createIomObject

public IomObject createIomObject(java.lang.String type,
                                 java.lang.String oid)
                          throws IoxException
Description copied from interface: IoxFactory
creates a IomObject with the given type and oid.

Specified by:
createIomObject in interface IoxFactory
Parameters:
type - of object to create
oid - may be null
Returns:
null if factory don't know how to create object for given type.
Throws:
IoxException