org.openanzo.services
Class ReplicationServiceFactory

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

public class ReplicationServiceFactory
extends java.lang.Object

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

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
ReplicationServiceFactory()
           
 
Method Summary
static IReplicationService createReplicationService(java.lang.Object requestingObject, java.util.Properties properties)
          Attempts to dynamically load a class responsible for replicating with a Anzo server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicationServiceFactory

public ReplicationServiceFactory()
Method Detail

createReplicationService

public static final IReplicationService createReplicationService(java.lang.Object requestingObject,
                                                                 java.util.Properties properties)
Attempts to dynamically load a class responsible for replicating with a Anzo server. The class must implement IReplicationService and either have a static 'getInstance(Properties)' method that returns an IReplicationService or a constructor that takes only a 'Properties' parameter. WSReplicationService is the default/fall-back.

Parameters:
requestingObject - object creating replication service
properties - configuration properties
Returns:
a new IReplicationService based on the configuration properties


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