|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrx.plugins.RxJavaPlugins
public class RxJavaPlugins
Registry for plugin implementations that allows global override and handles the retrieval of correct implementation based on order of precedence:
register methods in this classSystem.getProperty(String) (see get methods for property names)
| Method Summary | |
|---|---|
RxJavaErrorHandler |
getErrorHandler()
Retrieve instance of RxJavaErrorHandler to use based on order of precedence as defined in RxJavaPlugins class header. |
static RxJavaPlugins |
getInstance()
|
RxJavaObservableExecutionHook |
getObservableExecutionHook()
Retrieve instance of RxJavaObservableExecutionHook to use based on order of precedence as defined in RxJavaPlugins class header. |
void |
registerErrorHandler(RxJavaErrorHandler impl)
Register a RxJavaErrorHandler implementation as a global override of any injected or default implementations. |
void |
registerObservableExecutionHook(RxJavaObservableExecutionHook impl)
Register a RxJavaObservableExecutionHook implementation as a global override of any injected or default implementations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RxJavaPlugins getInstance()
public RxJavaErrorHandler getErrorHandler()
RxJavaErrorHandler to use based on order of precedence as defined in RxJavaPlugins class header.
Override default by using RxJavaPlugins.registerErrorHandler(RxJavaErrorHandler) or setting property: rxjava.plugin.RxJavaErrorHandler.implementation with the full classname to
load.
RxJavaErrorHandler implementation to usepublic void registerErrorHandler(RxJavaErrorHandler impl)
RxJavaErrorHandler implementation as a global override of any injected or default implementations.
impl - RxJavaErrorHandler implementation
java.lang.IllegalStateException - if called more than once or after the default was initialized (if usage occurs before trying to register)public RxJavaObservableExecutionHook getObservableExecutionHook()
RxJavaObservableExecutionHook to use based on order of precedence as defined in RxJavaPlugins class header.
Override default by using RxJavaPlugins.registerObservableExecutionHook(RxJavaObservableExecutionHook) or setting property: rxjava.plugin.RxJavaObservableExecutionHook.implementation
with the full classname to load.
RxJavaObservableExecutionHook implementation to usepublic void registerObservableExecutionHook(RxJavaObservableExecutionHook impl)
RxJavaObservableExecutionHook implementation as a global override of any injected or default implementations.
impl - RxJavaObservableExecutionHook implementation
java.lang.IllegalStateException - if called more than once or after the default was initialized (if usage occurs before trying to register)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||