Class Bridge<Type>

Class which bridges external implementation for a specific abstract class. Will throw error when implementation is missing and access is performed.

Type Parameters

  • Type

Hierarchy

  • Bridge

Constructors

  • Creates an instance for a bridged implementation.

    Type Parameters

    • Type

    Parameters

    • abstractClass: IClass<Type>

      Abstract class to be implemented

    Returns Bridge<Type>

Properties

#abstractClassDefinition: IClass<Type>

Abstract Class used for creating the bridge.

#currentImplementation: null | Type

The current implementation for the bridge. This value will be null until an implementation is set.

Accessors

  • get abstractClass(): IClass<Type>
  • Sealed

    Returns the abstract class that will be bridged.

    Returns

    Class type for the bridge implementation

    Returns IClass<Type>

  • get implementation(): Type
  • Sealed

    Returns the implementation class' instance which extended the abstract class and was defined by the setImplementation method.

    Returns

    Implementation class instance

    Returns Type

Methods

  • Sealed

    Sets the implementation class' instance that will be used by the bridge.

    Parameters

    • implementation: Type

      Implementation class' instance

    Returns void

Generated using TypeDoc