com.ontotext.ordi
Class Factory

java.lang.Object
  extended by com.ontotext.ordi.Factory

public final class Factory
extends Object

This class contains methods to instantiate instances of ORDI data model or domain specific models as WSMO4J layered on top of it. Default settings are supported in the optional file "ordi.properties". The class cannot be instantiated it has only static method.

Author:
vassil

Field Summary
static String ORDI_MODEL_DEAULT_PROPERTIES
           
static String ORDI_MODEL_IMPLEMENTATION
           
 
Constructor Summary
Factory()
           
 
Method Summary
static
<X> X
create(Class<X> type, Map<Object,Object> map)
          Creates a new instance of the supplied class type.
static TSource createDefaultTSource()
          Creates a new instance of ORDI data model, based on the default settings.
static TSource createTSource(Map<Object,Object> map)
          Creates a new instance of ORDI data model, based on the default and runtime settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORDI_MODEL_DEAULT_PROPERTIES

public static final String ORDI_MODEL_DEAULT_PROPERTIES
See Also:
Constant Field Values

ORDI_MODEL_IMPLEMENTATION

public static final String ORDI_MODEL_IMPLEMENTATION
Constructor Detail

Factory

public Factory()
Method Detail

createDefaultTSource

public static TSource createDefaultTSource()
Creates a new instance of ORDI data model, based on the default settings. The class to instantiate is defined by ordi_model_implementation. All properties described in the file are supplied to the constructor of class to instantiate.

Returns:
object to implement ORDI data model

createTSource

public static TSource createTSource(Map<Object,Object> map)
Creates a new instance of ORDI data model, based on the default and runtime settings. The runtime settings have higher priority than the default settings. The class to instantiate is defined by ordi_model_implementation. All properties described in the file are supplied to the constructor of class to instantiate.

Parameters:
map - runtime settings
Returns:
object to implement ORDI data model

create

public static <X> X create(Class<X> type,
                           Map<Object,Object> map)
Creates a new instance of the supplied class type. This method is useful for creation of domain specific models layered on top of ORDI data model like wsmo4rdf. The method reuses also the configuration in the default settings.

Parameters:
type - is interface or class to be created
map - is runtime configuration to be used
Returns:
instance of class type


Copyright © 2008. All Rights Reserved.