Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package pt.webdetails.cda;
 
 
 import  org.apache.commons.logging.Log;
 import  org.apache.commons.logging.LogFactory;
 import  org.pentaho.platform.api.engine.IPluginLifecycleListener;
 import  org.pentaho.platform.api.engine.PluginLifecycleException;
This class inits Cda plugin within the bi-platform

Author(s):
gorman
public class CdaLifecycleListener implements IPluginLifecycleListener
  static Log logger = LogFactory.getLog(CacheScheduleManager.class);
  public void init() throws PluginLifecycleException
  {
    // boot cda
    CdaBoot.getInstance().start();
    PluginHibernateUtil.initialize();
  }
  public void loaded() throws PluginLifecycleException
  {
    ClassLoader contextCL = Thread.currentThread().getContextClassLoader();
    try
    {
      CacheScheduleManager.getInstance().coldInit();
    }
    catch (Exception e)
    {
      .error(Util.getExceptionDescription(e));
    }
    finally
    {
      Thread.currentThread().setContextClassLoader(contextCL);
    }
  }
  public void unLoaded() throws PluginLifecycleException
  {
    AbstractDataAccess.shutdowCache();
  }
New to GrepCode? Check out our FAQ X