public void loaded() throws PluginLifecycleException { ClassLoader contextCL = Thread.currentThread().getContextClassLoader(); try { super.loaded(); PluginEnvironment.init(CdaPluginEnvironment.getInstance()); CdaEngine.init(new PentahoCdaEnvironment()); CdaEngine.getInstance().getConfigProperty("just load", null); // registering custom data factories registerCustomDataFactories(); } catch (Exception e) { logger.error("loading error", e); } finally { Thread.currentThread().setContextClassLoader(contextCL); } }
public static void init() { PluginEnvironment.init(instance); }