net.floodlightcontroller.notification
Class NotificationManagerFactory

java.lang.Object
  extended by net.floodlightcontroller.notification.NotificationManagerFactory

public class NotificationManagerFactory
extends java.lang.Object

This factory is a public untility to get NotificationManager instance.

Author:
kevinwang

Field Summary
static java.lang.String NOTIFICATION_FACTORY_NAME
           
 
Constructor Summary
NotificationManagerFactory()
           
 
Method Summary
static
<T> INotificationManager
getNotificationManager(java.lang.Class<T> clazz)
          Helper method to create a NotificationManager instance by class with the underline factory
static
<T> INotificationManagerFactory
getNotificationManagerFactory()
          Helper method to return the factory
protected static void init()
          A simple mechanism to initialize factory with dynamic binding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTIFICATION_FACTORY_NAME

public static final java.lang.String NOTIFICATION_FACTORY_NAME
See Also:
Constant Field Values
Constructor Detail

NotificationManagerFactory

public NotificationManagerFactory()
Method Detail

init

protected static void init()
A simple mechanism to initialize factory with dynamic binding


getNotificationManager

public static <T> INotificationManager getNotificationManager(java.lang.Class<T> clazz)
Helper method to create a NotificationManager instance by class with the underline factory

Parameters:
clazz -
Returns:

getNotificationManagerFactory

public static <T> INotificationManagerFactory getNotificationManagerFactory()
Helper method to return the factory

Returns:
the INotificationManagerFactory instance