To facilitate this, the plug-in class implements the singleton pattern: It stores a reference to itself in a private class variable.
为了使这一点更方便,插件类实现单模式(singletonpattern):它在私有类变量中存储一个自身的引用。
One possible implementation is to use this method as a hook into your own private class initialization routines that are not already enabled by constructors.
一个可能的实现是,将此方法用作构造函数尚未启用的您自己的私有类初始化例程的挂钩。
One possible implementation is to use this method as a hook into your own private class initialization routines that are not already enabled by constructors.
一个可能的实现是,将此方法用作构造函数尚未启用的您自己的私有类初始化例程的挂钩。
应用推荐