Liferay 7.0-ce-b4

com.liferay.portal.module.framework
Class ModuleFrameworkUtilAdapter

java.lang.Object
  extended by com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter

public class ModuleFrameworkUtilAdapter
extends Object

This class is a simple wrapper in order to make the framework module running under its own class loader.

See Also:
ModuleFrameworkClassLoader

Constructor Summary
ModuleFrameworkUtilAdapter()
           
 
Method Summary
static long addBundle(String location)
           
static long addBundle(String location, InputStream inputStream)
           
static Object getFramework()
           
static String getState(long bundleId)
           
static void initFramework()
           
static void registerContext(Object context)
           
static void setBundleStartLevel(long bundleId, int startLevel)
           
static void setModuleFramework(ModuleFramework moduleFramework)
           
static void startBundle(long bundleId)
           
static void startBundle(long bundleId, int options)
           
static void startFramework()
           
static void startRuntime()
           
static void stopBundle(long bundleId)
           
static void stopBundle(long bundleId, int options)
           
static void stopFramework(long timeout)
           
static void stopRuntime()
           
static void uninstallBundle(long bundleId)
           
static void updateBundle(long bundleId)
           
static void updateBundle(long bundleId, InputStream inputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleFrameworkUtilAdapter

public ModuleFrameworkUtilAdapter()
Method Detail

addBundle

public static long addBundle(String location)
                      throws PortalException
Throws:
PortalException

addBundle

public static long addBundle(String location,
                             InputStream inputStream)
                      throws PortalException
Throws:
PortalException

getFramework

public static Object getFramework()

getState

public static String getState(long bundleId)
                       throws PortalException
Throws:
PortalException

initFramework

public static void initFramework()
                          throws Exception
Throws:
Exception

registerContext

public static void registerContext(Object context)

setBundleStartLevel

public static void setBundleStartLevel(long bundleId,
                                       int startLevel)
                                throws PortalException
Throws:
PortalException

setModuleFramework

public static void setModuleFramework(ModuleFramework moduleFramework)

startBundle

public static void startBundle(long bundleId)
                        throws PortalException
Throws:
PortalException

startBundle

public static void startBundle(long bundleId,
                               int options)
                        throws PortalException
Throws:
PortalException

startFramework

public static void startFramework()
                           throws Exception
Throws:
Exception

startRuntime

public static void startRuntime()
                         throws Exception
Throws:
Exception

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(long timeout)
                          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

Liferay 7.0-ce-b4