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
Modifier and TypeFieldDescriptionprotected org.osgi.framework.BundleContext
protected static final CLogger
protected IDictionaryService
protected org.osgi.util.tracker.ServiceTracker<IDictionaryService,
IDictionaryService> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddingService
(org.osgi.framework.ServiceReference<IDictionaryService> reference) void
protected boolean
directMerge
(File zipfile, String version) void
frameworkEvent
(org.osgi.framework.FrameworkEvent event) protected abstract void
boolean
abstract String
getName()
protected boolean
installedPackage
(String version) static Boolean
protected boolean
void
modifiedService
(org.osgi.framework.ServiceReference<IDictionaryService> reference, IDictionaryService service) void
void
removedService
(org.osgi.framework.ServiceReference<IDictionaryService> reference, IDictionaryService service) void
setProcessInfo
(ProcessInfo processInfo) void
setProcessUI
(IProcessUI processUI) void
setSummary
(Level level, String msg) protected void
start()
call when bundle have been started ( after this.context have been set )void
start
(org.osgi.framework.BundleContext context) protected void
statusUpdate
(String message) protected void
stop()
call when bundle is stop ( before this.context is set to null )void
stop
(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:
start
in interfaceorg.osgi.framework.BundleActivator
- Throws:
Exception
-
stop
- Specified by:
stop
in 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:
frameworkEvent
in 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:
addingService
in interfaceorg.osgi.util.tracker.ServiceTrackerCustomizer<IDictionaryService,
IDictionaryService>
-
modifiedService
public void modifiedService(org.osgi.framework.ServiceReference<IDictionaryService> reference, IDictionaryService service) - Specified by:
modifiedService
in interfaceorg.osgi.util.tracker.ServiceTrackerCustomizer<IDictionaryService,
IDictionaryService>
-
removedService
public void removedService(org.osgi.framework.ServiceReference<IDictionaryService> reference, IDictionaryService service) - Specified by:
removedService
in interfaceorg.osgi.util.tracker.ServiceTrackerCustomizer<IDictionaryService,
IDictionaryService>
-