org.wsmo.factory
Class Factory

java.lang.Object
  extended by org.wsmo.factory.Factory

public final class Factory
extends java.lang.Object


Field Summary
private static boolean cachingEnabled
           
private static java.util.Properties defaultImplMap
           
private static LocatorManager locManager
           
private static java.util.Map objectCache
           
private static java.lang.String propertiesFile
           
static java.lang.String PROVIDER_CLASS
           
private static java.lang.String WSMO_PARSER
           
private static java.lang.String WSMO_SERIALIZER
           
 
Constructor Summary
private Factory()
           
 
Method Summary
private static java.lang.Object _createFactory(java.util.Map properties)
           
private static java.lang.Object _createObject(java.util.Map properties)
           
static DataFactory createDataFactory(java.util.Map properties)
          Creates a WsmoFactory based on the supplied preferences.
static DataStore createDatastore(java.util.Map properties)
          Creates a datastore based on the supplied preferences.
static LogicalExpressionFactory createLogicalExpressionFactory(java.util.Map properties)
           
static Parser createParser(java.util.Map properties)
          Creates a parser based on the supplied preferences.
static Serializer createSerializer(java.util.Map properties)
          Creates a serialiser based on the supplied preferences.
static WsmoFactory createWsmoFactory(java.util.Map properties)
          Creates a WsmoFactory based on the supplied preferences.
static LocatorManager getLocatorManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROVIDER_CLASS

public static final java.lang.String PROVIDER_CLASS
See Also:
Constant Field Values

WSMO_PARSER

private static final java.lang.String WSMO_PARSER
See Also:
Constant Field Values

WSMO_SERIALIZER

private static final java.lang.String WSMO_SERIALIZER
See Also:
Constant Field Values

locManager

private static LocatorManager locManager

cachingEnabled

private static boolean cachingEnabled

objectCache

private static java.util.Map objectCache

defaultImplMap

private static java.util.Properties defaultImplMap

propertiesFile

private static final java.lang.String propertiesFile
See Also:
Constant Field Values
Constructor Detail

Factory

private Factory()
Method Detail

createDatastore

public static DataStore createDatastore(java.util.Map properties)
Creates a datastore based on the supplied preferences. At least one preference should be supplied - the provider class

Parameters:
properties - the preferences for the datastore. Such preferences should provide all the necessary information for the data store initialisation (e.g. provider class, connection URL,..., etc.)
Returns:
a reference to a datastore
See Also:
PROVIDER_CLASS

createParser

public static Parser createParser(java.util.Map properties)
Creates a parser based on the supplied preferences. At least one preference should be supplied - the provider class

Parameters:
properties - the preferences for the parser. Such preferences should provide all the necessary information for the parser initialisation (e.g. provider class, factory to be used, file type, grammar version, etc.)
Returns:
a Parser
See Also:
PROVIDER_CLASS, #PARSER_FACTORY

createSerializer

public static Serializer createSerializer(java.util.Map properties)
Creates a serialiser based on the supplied preferences. At least one preference should be supplied - the provider class

Parameters:
properties - the preferences for the parser. Such preferences should provide all the necessary information for the parser initialisation (e.g. provider class, factory to be used, file type, grammar version, etc.)
Returns:
a Parser
See Also:
PROVIDER_CLASS

createWsmoFactory

public static WsmoFactory createWsmoFactory(java.util.Map properties)
Creates a WsmoFactory based on the supplied preferences. At least one preference should be supplied - the provider class

Parameters:
properties - the preferences for the WSMO factory. Such preferences should provide all the necessary information for the factory initialisation (e.g. provider class, etc.)
Returns:
a WsmoFactory
See Also:
PROVIDER_CLASS

createDataFactory

public static DataFactory createDataFactory(java.util.Map properties)
Creates a WsmoFactory based on the supplied preferences. At least one preference should be supplied - the provider class

Parameters:
properties - the preferences for the WSMO factory. Such preferences should provide all the necessary information for the factory initialisation (e.g. provider class, etc.)
Returns:
a WsmoFactory
See Also:
PROVIDER_CLASS

createLogicalExpressionFactory

public static LogicalExpressionFactory createLogicalExpressionFactory(java.util.Map properties)

getLocatorManager

public static LocatorManager getLocatorManager()

_createObject

private static java.lang.Object _createObject(java.util.Map properties)

_createFactory

private static java.lang.Object _createFactory(java.util.Map properties)