org.openanzo.services
Class NotificationServiceFactory

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

public class NotificationServiceFactory
extends java.lang.Object

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

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
NotificationServiceFactory()
           
 
Method Summary
static INotificationService createNotificationService(java.lang.Object requestingObject, java.util.Properties properties)
          Attempts to dynamically load a class responsible for the Anzo notification service connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationServiceFactory

public NotificationServiceFactory()
Method Detail

createNotificationService

public static final INotificationService createNotificationService(java.lang.Object requestingObject,
                                                                   java.util.Properties properties)
Attempts to dynamically load a class responsible for the Anzo notification service connection. The class must implement INotificationService and either have a static 'getInstance(Properties)' method that returns an INotificationService or a constructor that takes only a 'Properties' parameter. JMSNotificationService is the default/fallback.

Parameters:
requestingObject - Object requesting new service object
properties - containing configuration information for services
Returns:
new INotificationService for provided properties


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