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 boolean
Return true if observable properties, computable properties or query results that are of type collection are wrapped in unmodifiable variant prior to returning.static boolean
Return true if user should pass names into API methods, false if should pass null.static boolean
Return true if native components are enabled.static boolean
Return true if observer error handlers are enabled.static boolean
Return true if property introspectors for Observables are enabled.static boolean
Return true if references are enabled.static boolean
Return true if registries for top level reactive components are enabled.static boolean
Return true if spies are enabled.static boolean
Return true if zones are enabled, false otherwise.static ArezContext
context()
Return the ArezContext from the provider.static Zone
Create a new zone.static boolean
Return true if a task interceptor can be specified.static boolean
Return true ifVerifiable
will verify components be used, false if not.static boolean
Return true if active tasks will be purged if the scheduler is still running after 100 rounds.static boolean
Return true if apiInvariants will be checked.static boolean
Return 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 ifVerifiable
will verify components be used, false if not.- Returns:
- true if
Verifiable
will 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.
-
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.
-