import IApp from '@gluestack/framework/types/app/interface/IApp'; import IPlugin from '@gluestack/framework/types/plugin/interface/IPlugin'; import IInstance from '@gluestack/framework/types/plugin/interface/IInstance'; import ILifeCycle from '@gluestack/framework/types/plugin/interface/ILifeCycle'; import IGlueStorePlugin from '@gluestack/framework/types/store/interface/IGluePluginStore'; export class PluginInstance implements IInstance, ILifeCycle { app: IApp; name: string; callerPlugin: IPlugin; isOfTypeInstance: boolean = true; gluePluginStore: IGlueStorePlugin; installationPath: string; constructor( app: IApp, callerPlugin: IPlugin, name: string, gluePluginStore: IGlueStorePlugin, installationPath: string ) { this.app = app; this.name = name; this.callerPlugin = callerPlugin; this.gluePluginStore = gluePluginStore; this.installationPath = installationPath; } getInstallationPath(): string { throw new Error('Method not implemented.'); } init() { // } destroy() { // } getName(): string { return this.name; } getCallerPlugin(): IPlugin { return this.callerPlugin; } }