org.openanzo.services
Class ModelServiceFactory

java.lang.Object
  extended by org.openanzo.services.ModelServiceFactory

public class ModelServiceFactory
extends java.lang.Object

Factory to create IModelService based on configuration properties passed in on create method

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
ModelServiceFactory()
           
 
Method Summary
static IModelService createModelService(java.lang.Object requestingObject, java.util.Properties properties)
          Attempts to dynamically load a class responsible for communicating with the Anzo Server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelServiceFactory

public ModelServiceFactory()
Method Detail

createModelService

public static final IModelService createModelService(java.lang.Object requestingObject,
                                                     java.util.Properties properties)
Attempts to dynamically load a class responsible for communicating with the Anzo Server. The class must implement IModelService and either have a static 'getInstance(Properties)' method that returns an IModelService or a constructor that takes only a 'Properties' parameter. WSModelService is the default/fallback.

Parameters:
requestingObject - Object requesting new service object
properties - containing configuration information for services
Returns:
new IModelService implementation based on provided properties


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.