Opener class

Helper class that opens components.

IOpenable

Constructors

Opener()

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Methods

isOpen(List components) → bool
  • Checks if all components are opened.
    • To be checked components must implement IOpenable interface.
    • If they don't the call to this method returns true.
      • components a list of components that are to be checked.
    • Returns true if all components are opened and false if at least one component is closed.
    • See isOpenOne
    • See IOpenable
  • isOpenOne(dynamic component) → bool
  • Checks if specified component is opened.
    • To be checked components must implement IOpenable interface.
    • If they don't the call to this method returns true.
      • component the component that is to be checked.
    • Returns true if component is opened and false otherwise.
    • See IOpenable
  • open(String correlationId, List components) → Future
  • Opens multiple components.
    • To be opened components must implement IOpenable interface.
    • If they don't the call to this method has no effect.
      • correlationId (optional) transaction id to trace execution through call chain.
      • components the list of components that are to be closed.
    • Return Future that returns error or null no errors occured.
  • openOne(String correlationId, dynamic component) → Future
  • Opens specific component.
    • To be opened components must implement IOpenable interface.
    • If they don't the call to this method has no effect.
      • correlationId (optional) transaction id to trace execution through call chain.
      • component the component that is to be opened.
    • Return Future that returns error or null no errors occured.