⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 propertyconfigserviceimpl.java.svn-base

📁 portal越来越流行了
💻 SVN-BASE
字号:
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.  See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License.  You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package org.apache.pluto.driver.services.impl.resource;import java.io.InputStream;import java.util.Set;import javax.servlet.ServletContext;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.apache.pluto.driver.config.DriverConfigurationException;import org.apache.pluto.driver.services.portal.PropertyConfigService;/** * Default implementation of all of the portal Services. * Utilizes resource configuration from * <code>pluto-portal-driver-config.xml</code> * * @since Aug 10, 2005 */public class PropertyConfigServiceImpl implements    PropertyConfigService {    private static final Log LOG =        LogFactory.getLog(PropertyConfigServiceImpl.class);    private ResourceConfig config;    public PropertyConfigServiceImpl() {            }    /**     * Initialization Lifecycle Method     * @param ctx     */    public void init(ServletContext ctx) {        try {            InputStream in = ctx.getResourceAsStream(ResourceConfigReader.CONFIG_FILE);            config = ResourceConfigReader.getFactory().parse(in);        }        catch(Exception e) {            LOG.error("Unable to parse resource config "+e.getMessage(), e);            throw new DriverConfigurationException(e);        }    }    /**     * Shutdown the ResourceService.     */    public void destroy() {        config = null;    }    public String getPortalName() {        return config.getPortalName();    }    public String getPortalVersion() {        return config.getPortalVersion();    }    public String getContainerName() {        return config.getContainerName();    }    public Set getSupportedPortletModes() {        return config.getSupportedPortletModes();    }    public Set getSupportedWindowStates() {        return config.getSupportedWindowStates();    }//    public Set getPortletApplications() {//        return config.getPortletApplications();//    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -