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.BundleContext
getBundleContext()
static <T> org.osgi.util.tracker.ServiceTracker<T,T>
getServiceTracker(Class<T> type, org.osgi.framework.Filter filter)
void
start(org.osgi.framework.BundleContext context)
void
stop(org.osgi.framework.BundleContext context)
-
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context) throws Exception
- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Throws:
Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws Exception
- Specified by:
stop
in 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)
-
-