Class AbstractActivator

java.lang.Object
org.adempiere.plugin.utils.AbstractActivator
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.FrameworkListener, org.osgi.util.tracker.ServiceTrackerCustomizer<IDictionaryService,IDictionaryService>
Direct Known Subclasses:
AdempiereActivator, Incremental2PackActivator, PackInApplicationActivator, Version2PackActivator

public abstract class AbstractActivator extends Object implements org.osgi.framework.BundleActivator, org.osgi.util.tracker.ServiceTrackerCustomizer<IDictionaryService,IDictionaryService>, org.osgi.framework.FrameworkListener
  • Field Details

  • Constructor Details

    • AbstractActivator

      public AbstractActivator()
  • Method Details

    • start

      public void start(org.osgi.framework.BundleContext context) throws Exception
      Specified by:
      start in interface org.osgi.framework.BundleActivator
      Throws:
      Exception
    • stop

      public void stop(org.osgi.framework.BundleContext context) throws Exception
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
      Throws:
      Exception
    • merge

      protected boolean merge(File zipfile, String version) throws Exception
      Throws:
      Exception
    • directMerge

      protected boolean directMerge(File zipfile, String version) throws Exception
      Throws:
      Exception
    • installedPackage

      protected boolean installedPackage(String version)
    • getName

      public abstract String getName()
    • getDBLock

      public boolean getDBLock() throws AdempiereSystemError
      Throws:
      AdempiereSystemError
    • releaseLock

      public void releaseLock()
    • setProcessInfo

      public void setProcessInfo(ProcessInfo processInfo)
    • getProcessInfo

      public ProcessInfo getProcessInfo()
    • setProcessUI

      public void setProcessUI(IProcessUI processUI)
    • statusUpdate

      protected void statusUpdate(String message)
    • addLog

      public void addLog(Level level, String msg)
    • setSummary

      public void setSummary(Level level, String msg)
    • frameworkEvent

      public void frameworkEvent(org.osgi.framework.FrameworkEvent event)
      Specified by:
      frameworkEvent in interface org.osgi.framework.FrameworkListener
    • isFrameworkStarted

      public static Boolean isFrameworkStarted()
    • frameworkStarted

      protected abstract void frameworkStarted()
    • start

      protected void start()
      call when bundle have been started ( after this.context have been set )
    • stop

      protected void stop()
      call when bundle is stop ( before this.context is set to null )
    • getVersion

      public String getVersion()
    • addingService

      public IDictionaryService addingService(org.osgi.framework.ServiceReference<IDictionaryService> reference)
      Specified by:
      addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<IDictionaryService,IDictionaryService>
    • modifiedService

      public void modifiedService(org.osgi.framework.ServiceReference<IDictionaryService> reference, IDictionaryService service)
      Specified by:
      modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<IDictionaryService,IDictionaryService>
    • removedService

      public void removedService(org.osgi.framework.ServiceReference<IDictionaryService> reference, IDictionaryService service)
      Specified by:
      removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<IDictionaryService,IDictionaryService>