PreparedBindingPoint Class

Represents a target binding point prepared for multiple invocations Returned from the Bindings#prepare method.

class PreparedBindingPoint {
    waitForConnected(): Promise<void>;
    get isConnected(): boolean;
    unprepare(): void;
    invoke(value: Object): Promise<void>;
    tryInvoke(value: Object): boolean | Promise<any>;
}

#Properties

#isConnected

Check if this binding point is currently connected and ready to accept invocations

get isConnected(): boolean;

#Methods

#invoke()

Invokes this binding point

invoke(value: Object): Promise<void>;
  • value The value to pass to the binding point

#tryInvoke()

Tries to invokes this binding point

tryInvoke(value: Object): boolean | Promise<any>;
  • value The value to pass to the binding point

#unprepare()

Releases this prepared binding point

unprepare(): void;

#waitForConnected()

Returns a promise that will resolve once this prepared binding has connected

waitForConnected(): Promise<void>;