com.liferay.portal.osgi.service
Class OSGiServiceUtil
java.lang.Object
com.liferay.portal.osgi.service.OSGiServiceUtil
public class OSGiServiceUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addBundle
public static Object addBundle(String location)
throws PortalException
- Throws:
PortalException
addBundle
public static Object addBundle(String location,
InputStream inputStream)
throws PortalException
- Throws:
PortalException
getFramework
public static org.osgi.framework.launch.Framework getFramework()
getState
public static String getState(long bundleId)
throws PortalException
- Throws:
PortalException
init
public static void init()
throws Exception
- Throws:
Exception
registerContext
public static void registerContext(Object context)
setBundleStartLevel
public static void setBundleStartLevel(long bundleId,
int startLevel)
throws PortalException
- Throws:
PortalException
start
public static void start()
throws Exception
- Throws:
Exception
startBundle
public static void startBundle(long bundleId)
throws PortalException
- Throws:
PortalException
startBundle
public static void startBundle(long bundleId,
int options)
throws PortalException
- Throws:
PortalException
stopBundle
public static void stopBundle(long bundleId)
throws PortalException
- Throws:
PortalException
stopBundle
public static void stopBundle(long bundleId,
int options)
throws PortalException
- Throws:
PortalException
stopFramework
public static void stopFramework()
throws Exception
- Throws:
Exception
stopRuntime
public static void stopRuntime()
throws Exception
- Throws:
Exception
uninstallBundle
public static void uninstallBundle(long bundleId)
throws PortalException
- Throws:
PortalException
updateBundle
public static void updateBundle(long bundleId)
throws PortalException
- Throws:
PortalException
updateBundle
public static void updateBundle(long bundleId,
InputStream inputStream)
throws PortalException
- Throws:
PortalException