示例#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);
    }
  }
示例#2
0
 public static void init() {
   PluginEnvironment.init(instance);
 }