Package org.adempiere.base
Class BaseActivator
- java.lang.Object
-
- org.adempiere.base.BaseActivator
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class BaseActivator extends Object implements org.osgi.framework.BundleActivator
- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description BaseActivator()default constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.osgi.framework.BundleContextgetBundleContext()static <T> org.osgi.util.tracker.ServiceTracker<T,T>getServiceTracker(Class<T> type, org.osgi.framework.Filter filter)voidstart(org.osgi.framework.BundleContext context)voidstop(org.osgi.framework.BundleContext context)
-
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context) throws Exception- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws Exception- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
getBundleContext
public static org.osgi.framework.BundleContext getBundleContext()
- Returns:
- bundle context
-
getServiceTracker
public static <T> org.osgi.util.tracker.ServiceTracker<T,T> getServiceTracker(Class<T> type, org.osgi.framework.Filter filter)
-
-