Package arez
Class Arez
java.lang.Object
arez.Arez
Provide access to an instance of ArezContext and Arez global configuration settings.
The
context() should always return the current context. If areZonesEnabled()
is false it will return a singleton otherwise the appropriate context for the zone will be
invoked.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturn true if observable properties, computable properties or query results that are of type collection are wrapped in unmodifiable variant prior to returning.static booleanReturn true if user should pass names into API methods, false if should pass null.static booleanReturn true if native components are enabled.static booleanReturn true if observer error handlers are enabled.static booleanReturn true if property introspectors for Observables are enabled.static booleanReturn true if references are enabled.static booleanReturn true if registries for top level reactive components are enabled.static booleanReturn true if spies are enabled.static booleanReturn true if zones are enabled, false otherwise.static ArezContextcontext()Return the ArezContext from the provider.static ZoneCreate a new zone.static booleanReturn true if a task interceptor can be specified.static booleanReturn true ifVerifiablewill verify components be used, false if not.static booleanReturn true if active tasks will be purged if the scheduler is still running after 100 rounds.static booleanReturn true if apiInvariants will be checked.static booleanReturn true if expensive invariants will be checked.static booleanReturn true if invariants will be checked.
-
Method Details
-
areZonesEnabled
Return true if zones are enabled, false otherwise.- Returns:
- true if zones are enabled, false otherwise.
-
areNamesEnabled
Return true if user should pass names into API methods, false if should pass null.- Returns:
- true if user should pass names into API methods, false if should pass null.
-
isVerifyEnabled
Return true ifVerifiablewill verify components be used, false if not.- Returns:
- true if
Verifiablewill verify components be used, false if not.
-
areSpiesEnabled
Return true if spies are enabled.- Returns:
- true if spies are enabled, false otherwise.
-
areReferencesEnabled
Return true if references are enabled.- Returns:
- true if references are enabled, false otherwise.
-
areCollectionsPropertiesUnmodifiable
Return true if observable properties, computable properties or query results that are of type collection are wrapped in unmodifiable variant prior to returning.- Returns:
- true if observable properties, computable properties or query results that are of type collection are wrapped in unmodifiable variant prior to returning.
-
arePropertyIntrospectorsEnabled
Return true if property introspectors for Observables are enabled.- Returns:
- true if property introspectors for Observables are enabled, false otherwise.
-
areRegistriesEnabled
Return true if registries for top level reactive components are enabled.- Returns:
- true if registries for top level reactive components are enabled, false otherwise.
-
areNativeComponentsEnabled
Return true if native components are enabled.- Returns:
- true if native components are enabled, false otherwise.
-
areObserverErrorHandlersEnabled
Return true if observer error handlers are enabled.- Returns:
- true if observer error handlers are enabled, false otherwise.
-
isTaskInterceptorEnabled
Return true if a task interceptor can be specified.- Returns:
- true if a task interceptor can be specified
-
shouldCheckInvariants
Return true if invariants will be checked.- Returns:
- true if invariants will be checked.
-
shouldCheckExpensiveInvariants
Return true if expensive invariants will be checked.- Returns:
- true if expensive invariants will be checked.
-
shouldCheckApiInvariants
Return true if apiInvariants will be checked.- Returns:
- true if apiInvariants will be checked.
-
purgeTasksWhenRunawayDetected
Return true if active tasks will be purged if the scheduler is still running after 100 rounds.- Returns:
- true if active tasks will be purged if the scheduler is still running after 100 rounds.
-
context
Return the ArezContext from the provider.- Returns:
- the ArezContext.
-
createZone
Create a new zone. This zone is not yet activated.- Returns:
- the new zone.
-