Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultContainerFactory

Creates default container components (loggers, counters, caches, locks, etc.) by their descriptors.

see

Factory (in the PipServices "Components" package)

see

DefaultInfoFactory (in the PipServices "Components" package)

see

DefaultLoggerFactory (in the PipServices "Components" package)

see

DefaultCountersFactory (in the PipServices "Components" package)

see

DefaultConfigReaderFactory (in the PipServices "Components" package)

see

DefaultCacheFactory (in the PipServices "Components" package)

see

DefaultCredentialStoreFactory (in the PipServices "Components" package)

see

DefaultDiscoveryFactory (in the PipServices "Components" package)

see

DefaultTestFactory (in the PipServices "Components" package)

Hierarchy

  • CompositeFactory
    • DefaultContainerFactory

Implements

  • IFactory

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Static Descriptor

Descriptor: Descriptor = new Descriptor("pip-services", "factory", "container", "default", "1.0")

Methods

add

  • add(factory: IFactory): void
  • Adds a factory to this CompositeFactory.

    throws

    an Error if factory is null.

    Parameters

    • factory: IFactory

      the factory to add. Cannot be null.

    Returns void

canCreate

  • canCreate(locator: any): any
  • Checks if the factory contains the given locator.

    throws

    an Error if the locator is null.

    Parameters

    • locator: any

      the locator to search for in this factory. Cannot be null.

    Returns any

    the locator that was found or null otherwise.

create

  • create(locator: any): any
  • Creates an object using the given locator.

    throws

    a CreateException if it fails to create an object using the given locator, or an Error if the locator is null.

    Parameters

    • locator: any

      the locator of the factory that needs to be called. Cannot be null.

    Returns any

    the object that was created by the factory with the given locator.

remove

  • remove(factory: IFactory): void
  • Removes a factory from this CompositeFactory.

    Parameters

    • factory: IFactory

      the factory to remove.

    Returns void

Generated using TypeDoc