Package org.adempiere.plugin.utils
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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.osgi.framework.BundleContextprotected static final CLoggerprotected IDictionaryServiceprotected org.osgi.util.tracker.ServiceTracker<IDictionaryService,IDictionaryService> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddingService(org.osgi.framework.ServiceReference<IDictionaryService> reference) voidprotected booleandirectMerge(File zipfile, String version) voidframeworkEvent(org.osgi.framework.FrameworkEvent event) protected abstract voidbooleanabstract StringgetName()protected booleaninstalledPackage(String version) static Booleanprotected booleanvoidmodifiedService(org.osgi.framework.ServiceReference<IDictionaryService> reference, IDictionaryService service) voidvoidremovedService(org.osgi.framework.ServiceReference<IDictionaryService> reference, IDictionaryService service) voidsetProcessInfo(ProcessInfo processInfo) voidsetProcessUI(IProcessUI processUI) voidsetSummary(Level level, String msg) protected voidstart()call when bundle have been started ( after this.context have been set )voidstart(org.osgi.framework.BundleContext context) protected voidstatusUpdate(String message) protected voidstop()call when bundle is stop ( before this.context is set to null )voidstop(org.osgi.framework.BundleContext context)
-
Field Details
-
logger
-
context
protected org.osgi.framework.BundleContext context -
serviceTracker
protected org.osgi.util.tracker.ServiceTracker<IDictionaryService,IDictionaryService> serviceTracker -
service
-
-
Constructor Details
-
AbstractActivator
public AbstractActivator()
-
-
Method Details
-
start
- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
merge
- Throws:
Exception
-
directMerge
- Throws:
Exception
-
installedPackage
-
getName
-
getDBLock
- Throws:
AdempiereSystemError
-
releaseLock
public void releaseLock() -
setProcessInfo
-
getProcessInfo
-
setProcessUI
-
statusUpdate
-
addLog
-
setSummary
-
frameworkEvent
public void frameworkEvent(org.osgi.framework.FrameworkEvent event) - Specified by:
frameworkEventin interfaceorg.osgi.framework.FrameworkListener
-
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
-
addingService
public IDictionaryService addingService(org.osgi.framework.ServiceReference<IDictionaryService> reference) - Specified by:
addingServicein interfaceorg.osgi.util.tracker.ServiceTrackerCustomizer<IDictionaryService,IDictionaryService>
-
modifiedService
public void modifiedService(org.osgi.framework.ServiceReference<IDictionaryService> reference, IDictionaryService service) - Specified by:
modifiedServicein interfaceorg.osgi.util.tracker.ServiceTrackerCustomizer<IDictionaryService,IDictionaryService>
-
removedService
public void removedService(org.osgi.framework.ServiceReference<IDictionaryService> reference, IDictionaryService service) - Specified by:
removedServicein interfaceorg.osgi.util.tracker.ServiceTrackerCustomizer<IDictionaryService,IDictionaryService>
-