Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework
2.0.0.0.0

E36392-01

oracle.adfmf.framework.event
Class EventSourceFactory

Object
  extended by oracle.adfmf.framework.event.EventSourceFactory

public class EventSourceFactory
extends Object

Factory for dealing with event sources.

See Also:
EventSource

Field Summary
static String CACHE_EVENT_SOURCE_NAME
          cache 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 Summary
EventSourceFactory()
           
 
Method Summary
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
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPEN_URL_EVENT_SOURCE_NAME

public static final String OPEN_URL_EVENT_SOURCE_NAME
open url event source name

See Also:
Constant Field Values

NATIVE_PUSH_NOTIFICATION_REMOTE_EVENT_SOURCE_NAME

public static final String NATIVE_PUSH_NOTIFICATION_REMOTE_EVENT_SOURCE_NAME
native push notification event source name

See Also:
Constant Field Values

CACHE_EVENT_SOURCE_NAME

public static final String CACHE_EVENT_SOURCE_NAME
cache event source name

See Also:
Constant Field Values
Constructor Detail

EventSourceFactory

public EventSourceFactory()
Method Detail

getEventSource

public static EventSource getEventSource(String name)
Get event source for a given name

Parameters:
name - name of the event source
Returns:
event source

registerEventSource

public static void registerEventSource(String eventSourceName,
                                       EventSource eventSource)
Register an event source

Parameters:
eventSourceName - name of the event source
eventSource - the event source object

registerEventSource

public static void registerEventSource(String eventSourceName,
                                       Class eventSourceClass)
Register an event source

Parameters:
eventSourceName - name of the event source
eventSourceClass - class representing event source object

getEventSourceNames

public static java.util.List getEventSourceNames()
Get names of all registered event sources

Returns:
a list of registered event source names

unregisterEventSource

public static void unregisterEventSource(String name)
Un-register an event source

Parameters:
name - name of the event source that needs to be unregistered

Oracle Fusion Middleware Java API Reference for Oracle Mobile Application Framework
2.0.0.0.0

E36392-01

Copyright © 2014 Oracle. All Rights Reserved.