Interface FeatureAppManagerOptions

Hierarchy

  • FeatureAppManagerOptions

Properties

externalsValidator?: ExternalsValidator

When using a moduleLoader, it might make sense to validate external dependencies that are required by Feature Apps against the shared dependencies that are provided by the integrator. This makes it possible that an error is already thrown when creating a Feature App with incompatible external dependencies, and thus enables early feedback as to whether a Feature App is compatible with the integration environment.

logger?: Logger

A custom logger that shall be used instead of console.

moduleLoader?: ModuleLoader

For the FeatureAppManager to be able to load Feature Apps from a remote location, a module loader must be provided. This can either be one of the module loaders that are provided by @feature-hub, i.e. @feature-hub/module-loader-amd, @feature-hub/module-loader-federation, and @feature-hub/module-loader-commonjs, or a custom loader.

onBind?: ((params: OnBindParams) => void)

Type declaration

    • (params: OnBindParams): void
    • A function that is called for every Feature App when its dependent Feature Services are bound. This allows the integrator to collect information about Feature Service and Feature App usage.

      Parameters

      Returns void

Generated using TypeDoc