com.silverpeas.notification
Class NotificationPublisherFactory

java.lang.Object
  extended by com.silverpeas.notification.NotificationPublisherFactory

public class NotificationPublisherFactory
extends Object

Factory of notification publishers for beans not managed by an IoC container. IoC container managed beans should use directly a NotificationPublisher instance as it will be injected as dependency by the IoC container. This factory wraps the concrete implementation of the NotifcationPublisher interface by using the IoC container.


Method Summary
static NotificationPublisherFactory getFactory()
          Gets an instance of this factory.
 NotificationPublisher getNotificationPublisher()
          Gets a notification publisher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactory

public static NotificationPublisherFactory getFactory()
Gets an instance of this factory.

Returns:
a NotificationPublisherFactory instance.

getNotificationPublisher

public NotificationPublisher getNotificationPublisher()
Gets a notification publisher.

Returns:
an implementation of the NotificationPublisher interface.


Copyright © 2016 Silverpeas. All Rights Reserved.