001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.module.framework;
016    
017    import com.liferay.portal.kernel.util.StringPool;
018    
019    import java.io.InputStream;
020    
021    import java.net.URL;
022    
023    import java.util.Collections;
024    import java.util.List;
025    import java.util.Map;
026    
027    /**
028     * @author Igor Spasic
029     * @author Miguel Pastor
030     */
031    public final class DummyModuleFramework implements ModuleFramework {
032    
033            @Override
034            public Object addBundle(String location) {
035                    return null;
036            }
037    
038            @Override
039            public Object addBundle(String location, InputStream inputStream) {
040                    return null;
041            }
042    
043            @Override
044            public Map<String, List<URL>> getExtraPackageMap() {
045                    return Collections.emptyMap();
046            }
047    
048            @Override
049            public List<URL> getExtraPackageURLs() {
050                    return Collections.emptyList();
051            }
052    
053            @Override
054            public Object getFramework() {
055                    return null;
056            }
057    
058            @Override
059            public String getState(long bundleId) {
060                    return StringPool.BLANK;
061            }
062    
063            @Override
064            public void registerContext(Object context) {
065            }
066    
067            @Override
068            public void setBundleStartLevel(long bundleId, int startLevel) {
069            }
070    
071            @Override
072            public void startBundle(long bundleId) {
073            }
074    
075            @Override
076            public void startBundle(long bundleId, int options) {
077            }
078    
079            @Override
080            public void startFramework() throws Exception {
081            }
082    
083            @Override
084            public void startRuntime() throws Exception {
085            }
086    
087            @Override
088            public void stopBundle(long bundleId) {
089            }
090    
091            @Override
092            public void stopBundle(long bundleId, int options) {
093            }
094    
095            @Override
096            public void stopFramework() throws Exception {
097            }
098    
099            @Override
100            public void stopRuntime() throws Exception {
101            }
102    
103            @Override
104            public void uninstallBundle(long bundleId) {
105            }
106    
107            @Override
108            public void updateBundle(long bundleId) {
109            }
110    
111            @Override
112            public void updateBundle(long bundleId, InputStream inputStream) {
113            }
114    
115    }