public class EventSourceFactory
extends Object
EventSource| Modifier and Type | Field and Description | 
|---|---|
static String | 
CACHE_EVENT_SOURCE_NAME
cache event source name 
 | 
static String | 
NATIVE_LOCAL_NOTIFICATION_EVENT_SOURCE_NAME
native local notification event source name 
 | 
static String | 
NATIVE_PUSH_NOTIFICATION_REMOTE_EVENT_SOURCE_NAME
native push notification event source name 
 | 
static String | 
OPEN_URL_EVENT_SOURCE_NAME
open url event source name 
 | 
| Constructor and Description | 
|---|
EventSourceFactory()  | 
| Modifier and Type | Method and Description | 
|---|---|
static EventSource | 
getEventSource(String name)
Get event source for a given name 
 | 
static java.util.List | 
getEventSourceNames()
Get names of all registered event sources 
 | 
static void | 
registerEventSource(String eventSourceName,
                   Class eventSourceClass)
Register an event source 
 | 
static void | 
registerEventSource(String eventSourceName,
                   EventSource eventSource)
Register an event source 
 | 
static void | 
unregisterEventSource(String name)
Un-register an event source 
 | 
public static final String OPEN_URL_EVENT_SOURCE_NAME
public static final String NATIVE_PUSH_NOTIFICATION_REMOTE_EVENT_SOURCE_NAME
public static final String CACHE_EVENT_SOURCE_NAME
public static final String NATIVE_LOCAL_NOTIFICATION_EVENT_SOURCE_NAME
public static EventSource getEventSource(String name)
name - name of the event sourcepublic static void registerEventSource(String eventSourceName,
                                       EventSource eventSource)
eventSourceName - name of the event sourceeventSource - the event source objectpublic static void registerEventSource(String eventSourceName,
                                       Class eventSourceClass)
eventSourceName - name of the event sourceeventSourceClass - class representing event source objectpublic static java.util.List getEventSourceNames()
public static void unregisterEventSource(String name)
name - name of the event source that needs to be unregistered