Esempio n. 1
0
  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);
    }
  }
Esempio n. 2
0
 public static void init() {
   PluginEnvironment.init(instance);
 }