Aller au contenu principal
Version: Next

TypedResourceManager <Resource, ResourceInitializeConfig, ResourceProviderType>

Index

Constructors

constructor

  • new TypedResourceManager<Resource, ResourceInitializeConfig, ResourceProviderType>(typedResourceInitializerOptions: { initializeClzProvider: {}; initializeValue: {}; resourceBinding: (ClzProvider: ClassType<ResourceProviderType>, resourceInitializeConfig: ResourceInitializeConfig, resource: Resource, resourceName: string) => Promise<any>; resourceDestroy: (resource: Resource, resourceInitializeConfig: ResourceInitializeConfig) => Promise<void>; resourceInitialize: (resourceInitializeConfig: ResourceInitializeConfig, resourceName: string) => Promise<Resource>; resourceStart: (resource: Resource, resourceInitializeConfig: ResourceInitializeConfig, resourceBindingResult?: any) => Promise<void> }): TypedResourceManager<Resource, ResourceInitializeConfig, ResourceProviderType>
  • Type parameters

    • Resource = any
    • ResourceInitializeConfig = any
    • ResourceProviderType = any

Methods

publiccreateResource

  • createResource(resourceName: string, resourceInitializeConfig: ResourceInitializeConfig): Promise<Resource>

publicdestroy

  • destroy(): Promise<void>

publicdestroyParallel

  • destroyParallel(): Promise<void>

publicgetResource

  • getResource(resourceName: string): any

publicinit

  • init(): Promise<void>

publicstart

  • start(): Promise<void>

publicstartParallel

  • startParallel(): Promise<void>