org.duracloud.notification
Class AmazonNotificationFactory

java.lang.Object
  extended by org.duracloud.notification.AmazonNotificationFactory
All Implemented Interfaces:
NotificationFactory

public class AmazonNotificationFactory
extends java.lang.Object
implements NotificationFactory

Author:
Andrew Woods Date: 3/11/11

Constructor Summary
AmazonNotificationFactory()
           
 
Method Summary
 Emailer getEmailer(java.lang.String fromAddress)
          This method creates an Emailer which connects to an underlying notification provider
 void initialize(java.lang.String accessKey, java.lang.String secretKey)
          This method initializes the factory with credentials for underlying notification platform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmazonNotificationFactory

public AmazonNotificationFactory()
Method Detail

initialize

public void initialize(java.lang.String accessKey,
                       java.lang.String secretKey)
Description copied from interface: NotificationFactory
This method initializes the factory with credentials for underlying notification platform.

Specified by:
initialize in interface NotificationFactory
Parameters:
accessKey - of notification service
secretKey - of notification service

getEmailer

public Emailer getEmailer(java.lang.String fromAddress)
Description copied from interface: NotificationFactory
This method creates an Emailer which connects to an underlying notification provider

Specified by:
getEmailer in interface NotificationFactory
Parameters:
fromAddress - of all emails sent with resultant Emailer
Returns:
Emailer


Copyright © 2009-2011 DuraSpace. All Rights Reserved.