com.liferay.portal.osgi.service
Class OSGiServiceUtil

java.lang.Object
  extended by com.liferay.portal.osgi.service.OSGiServiceUtil

public class OSGiServiceUtil
extends java.lang.Object

Author:
Raymond Augé

Method Summary
static java.lang.Object addBundle(java.lang.String location)
           
static java.lang.Object addBundle(java.lang.String location, java.io.InputStream inputStream)
           
static org.osgi.framework.launch.Framework getFramework()
           
static java.lang.String getState(long bundleId)
           
static void init()
           
static void registerContext(java.lang.Object context)
           
static void setBundleStartLevel(long bundleId, int startLevel)
           
static void start()
           
static void startBundle(long bundleId)
           
static void startBundle(long bundleId, int options)
           
static void stopBundle(long bundleId)
           
static void stopBundle(long bundleId, int options)
           
static void stopFramework()
           
static void stopRuntime()
           
static void uninstallBundle(long bundleId)
           
static void updateBundle(long bundleId)
           
static void updateBundle(long bundleId, java.io.InputStream inputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addBundle

public static java.lang.Object addBundle(java.lang.String location)
                                  throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

addBundle

public static java.lang.Object addBundle(java.lang.String location,
                                         java.io.InputStream inputStream)
                                  throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFramework

public static org.osgi.framework.launch.Framework getFramework()

getState

public static java.lang.String getState(long bundleId)
                                 throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

init

public static void init()
                 throws java.lang.Exception
Throws:
java.lang.Exception

registerContext

public static void registerContext(java.lang.Object context)

setBundleStartLevel

public static void setBundleStartLevel(long bundleId,
                                       int startLevel)
                                throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

start

public static void start()
                  throws java.lang.Exception
Throws:
java.lang.Exception

startBundle

public static void startBundle(long bundleId)
                        throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

startBundle

public static void startBundle(long bundleId,
                               int options)
                        throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

stopFramework

public static void stopFramework()
                          throws java.lang.Exception
Throws:
java.lang.Exception

stopRuntime

public static void stopRuntime()
                        throws java.lang.Exception
Throws:
java.lang.Exception

stopBundle

public static void stopBundle(long bundleId)
                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

stopBundle

public static void stopBundle(long bundleId,
                              int options)
                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

uninstallBundle

public static void uninstallBundle(long bundleId)
                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateBundle

public static void updateBundle(long bundleId)
                         throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateBundle

public static void updateBundle(long bundleId,
                                java.io.InputStream inputStream)
                         throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException