public class GlobalFacadeBase extends Object implements GlobalFacade, FacadeMessages
Modifier and Type | Field and Description |
---|---|
static String |
HPTP_BASE_NAME
The High Priority Thread Pool base name [HPTP].
|
static String |
JTP_BASE_NAME
The JRebirth Thread Pool base name [JTP].
|
COMPONENT_BUILD_ERROR, COMPONENT_RETRIEVAL_ERROR, JREBIRTH_EVENT, JTP_CREATION, UNLISTEN_ALL_ERROR
Constructor and Description |
---|
GlobalFacadeBase(JRebirthApplication<?> application)
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
JRebirthApplication<?> |
application() |
BehaviorFacade |
behaviorFacade() |
protected BehaviorFacade |
buildBehaviorFacade()
Build the BehaviorFacade singleton to use.
|
protected CommandFacade |
buildCommandFacade()
Build the CommandFacade singleton to use.
|
protected NotifierBase |
buildNotifier()
Build the notifier singleton to use.
|
protected ServiceFacade |
buildServiceFacade()
Build the ServiceFacade singleton to use.
|
protected UiFacade |
buildUiFacade()
Build the UiFacade singleton to use.
|
CommandFacade |
commandFacade() |
ComponentFactory |
componentFactory() |
protected void |
customStop()
Method to override to do some stuff when application stops.
|
IJRebirthThreadPoolExecutor |
executorService() |
IJRebirthThreadPoolExecutor |
highPriorityExecutorService() |
Notifier |
notifier() |
ServiceFacade |
serviceFacade() |
void |
stop()
Propagate the stop action into the global facade.
|
void |
trackEvent(JRebirthEventType eventType,
Class<?> source,
Class<?> target,
String... eventData)
Track an event.
|
UiFacade |
uiFacade() |
public static final String JTP_BASE_NAME
public static final String HPTP_BASE_NAME
public GlobalFacadeBase(JRebirthApplication<?> application)
application
- the current application launchedpublic final void trackEvent(JRebirthEventType eventType, Class<?> source, Class<?> target, String... eventData)
trackEvent
in interface GlobalFacade
eventType
- the type of the eventsource
- the source class of the eventtarget
- the target class of the eventeventData
- the data of the vent (like class name or other)public ComponentFactory componentFactory()
componentFactory
in interface GlobalFacade
public final JRebirthApplication<?> application()
application
in interface GlobalFacade
public final Notifier notifier()
notifier
in interface GlobalFacade
public final UiFacade uiFacade()
uiFacade
in interface GlobalFacade
public final ServiceFacade serviceFacade()
serviceFacade
in interface GlobalFacade
public final CommandFacade commandFacade()
commandFacade
in interface GlobalFacade
public final BehaviorFacade behaviorFacade()
behaviorFacade
in interface GlobalFacade
public IJRebirthThreadPoolExecutor executorService()
executorService
in interface GlobalFacade
public IJRebirthThreadPoolExecutor highPriorityExecutorService()
highPriorityExecutorService
in interface GlobalFacade
public final void stop() throws CoreException
stop
in interface GlobalFacade
CoreException
- if an error occurred while closing a streamprotected void customStop()
protected CommandFacade buildCommandFacade()
protected ServiceFacade buildServiceFacade()
protected UiFacade buildUiFacade()
protected BehaviorFacade buildBehaviorFacade()
protected NotifierBase buildNotifier()
Copyright © 2011–2016 JRebirth OSS. All rights reserved.