/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.module.framework;
import com.liferay.portal.kernel.exception.PortalException;
import java.io.InputStream;
import java.net.URL;
/**
* @author Raymond Augé
* @author Miguel Pastor
*/
public interface ModuleFramework {
public long addBundle(String location) throws PortalException;
public long addBundle(String location, InputStream inputStream)
throws PortalException;
public URL getBundleResource(long bundleId, String name);
public Object getFramework();
public String getState(long bundleId) throws PortalException;
public void initFramework() throws Exception;
public void registerContext(Object context);
public void setBundleStartLevel(long bundleId, int startLevel)
throws PortalException;
public void startBundle(long bundleId) throws PortalException;
public void startBundle(long bundleId, int options) throws PortalException;
public void startFramework() throws Exception;
public void startRuntime() throws Exception;
public void stopBundle(long bundleId) throws PortalException;
public void stopBundle(long bundleId, int options) throws PortalException;
public void stopFramework(long timeout) throws Exception;
public void stopRuntime() throws Exception;
public void uninstallBundle(long bundleId) throws PortalException;
public void unregisterContext(Object context);
public void updateBundle(long bundleId) throws PortalException;
public void updateBundle(long bundleId, InputStream inputStream)
throws PortalException;
}