ch.interlis.iox
Interface IoxFactory
- All Known Subinterfaces:
- IoxFactoryCollection
- All Known Implementing Classes:
- DefaultIoxFactoryCollection, GenericIoxFactory
public interface IoxFactory
Factory for creating IomObjects.
An application may prefere to use specific java classes for a particular type instead of
a dynamic approach like IomObject. In that case it should create an implementation of this interface, that
creates the corresponding java object based on the provided type name.
- Author:
- ceis
Method Summary |
IomObject |
createIomObject(java.lang.String type,
java.lang.String oid)
creates a IomObject with the given type and oid. |
createIomObject
IomObject createIomObject(java.lang.String type,
java.lang.String oid)
throws IoxException
- creates a IomObject with the given type and oid.
- Parameters:
type
- of object to createoid
- may be null
- Returns:
- null if factory don't know how to create object for given type.
- Throws:
IoxException