Interface IPackageManager

Hierarchy

Index

Properties

Methods

Properties

public activePackages: any

public loadedPackages: any

public packageActivators: Array<any>

public packageDirPaths: Array<string>

public packageStates: any

Methods

public activate()

public activatePackage(name: string)

Parameters

  • name: string

public activatePackages(packages: any)

Parameters

  • packages: any

public behavior(eventName: string, initialValue: any)

Parameters

  • eventName: string
  • initialValue: any

public deactivatePackage(name: string)

Parameters

  • name: string

public deactivatePackages()

public decrementSubscriptionCount(eventName: string): number

Parameters

  • eventName: string

Returns

number

public disablePackage(name: string): any

Parameters

  • name: string

Returns

any

public emit(eventName: string, args?: Array<any>)

Parameters

  • eventName: string
  • args?: Array<any> optional

public enablePackage(name: string): any

Parameters

  • name: string

Returns

any

public getActivePackage(name: string): any

Parameters

  • name: string

Returns

any

public getActivePackages(): any

Returns

any

public getApmPath(): string

Returns

string

public getAvailablePackageMetadata(): Array<any>

Returns

Array<any>

public getAvailablePackageNames(): Array<any>

Returns

Array<any>

public getAvailablePackagePaths(): Array<any>

Returns

Array<any>

public getLoadedPackage(name: string): any

Parameters

  • name: string

Returns

any

public getLoadedPackages(): any

Returns

any

public getLoadedPackagesForTypes(types: any): Array<any>

Parameters

  • types: any

Returns

Array<any>

public getPackageDependencies(): any

Returns

any

public getPackageDirPaths(): string

Returns

string

public getPackageState(name: string): any

Parameters

  • name: string

Returns

any

public getSubscriptionCount(eventName: string): number

Parameters

  • eventName: string

Returns

number

public hasAtomEngine(packagePath: string): boolean

Parameters

  • packagePath: string

Returns

boolean

public hasSubscriptions(eventName: string): boolean

Parameters

  • eventName: string

Returns

boolean

public incrementSubscriptionCount(eventName: string): number

Parameters

  • eventName: string

Returns

number

public isBundledPackage(name: string): boolean

Parameters

  • name: string

Returns

boolean

public isPackageActive(name: string): boolean

Parameters

  • name: string

Returns

boolean

public isPackageDisabled(name: string): boolean

Parameters

  • name: string

Returns

boolean

public isPackageLoaded(name: string): boolean

Parameters

  • name: string

Returns

boolean

public loadPackage(nameOrPath: string)

Parameters

  • nameOrPath: string

public loadPackages()

public observeDisabledPackages()

public off(eventNames: string, handler: Function)

Parameters

  • eventNames: string
  • handler: Function

public on(eventNames: string, handler: Function): any

Parameters

  • eventNames: string
  • handler: Function

Returns

any

public once(eventName: string, handler: Function): any

Parameters

  • eventName: string
  • handler: Function

Returns

any

public pauseEvents(eventNames: string)

Parameters

  • eventNames: string

public registerPackageActivator(activator: any, types: any)

Parameters

  • activator: any
  • types: any

public resolvePackagePath(name: string): string

Parameters

  • name: string

Returns

string

public resumeEvents(eventNames: string)

Parameters

  • eventNames: string

public setPackageState(name: string, state: any)

Parameters

  • name: string
  • state: any

public signal(eventName: string)

Parameters

  • eventName: string

public unloadPackage(name: string)

Parameters

  • name: string

public unloadPackages()

public unobserveDisabledPackages()