Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FacadeFactory

Hierarchy

  • Factory
    • FacadeFactory

Implements

  • IFactory

Index

Constructors

constructor

Properties

Static AboutOperationsDescriptor

AboutOperationsDescriptor: Descriptor = new Descriptor("pip-services", "facade-operations", "about", "*", "1.0")

Static AuthManagerDescriptor

AuthManagerDescriptor: Descriptor = new Descriptor("pip-service", "facade-authorization", "default", "*", "1.0")

Static Descriptor

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

Static MainFacadeServiceDescriptor

MainFacadeServiceDescriptor: Descriptor = new Descriptor("pip-services", "facade-service", "default", "*", "1.0")

Static PartitionFacadeServiceDescriptor

PartitionFacadeServiceDescriptor: Descriptor = new Descriptor("pip-services", "facade-partition", "default", "*", "1.0")

Static SessionManagerDescriptor

SessionManagerDescriptor: Descriptor = new Descriptor("pip-services", "facade-session", "default", "*", "1.0")

Methods

canCreate

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

    Parameters

    • locator: any

      the locator to search for in this factory.

    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.

    Parameters

    • locator: any

      the locator of the factory that needs to be called.

    Returns any

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

register

  • register(locator: any, factory: function): void
  • Registers a factory.

    Example factory:

    (locator) => { return new myClass(); }
    
    throws

    Error, when locator or factory parameters are null.

    Parameters

    • locator: any

      the locator that is used to identify the factory. Cannot be null.

    • factory: function

      the factory to add. Cannot be null.

        • (locator: any): any
        • Parameters

          • locator: any

          Returns any

    Returns void

registerAsType

  • registerAsType(locator: any, objectFactory: any): void
  • Registers a factory that can create instance of 'objectFactory' classes.

    throws

    Error, when locator or factory parameters are null.

    Parameters

    • locator: any

      the locator that is used to identify the object factory. Cannot be null.

    • objectFactory: any

      the object type that can be created by this factory. Cannot be null.

    Returns void

Generated using TypeDoc