org.apache.geronimo.pluto.impl.PropertyConfigServiceImpl Maven / Gradle / Ivy
/*
* 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.geronimo.pluto.impl;
import java.util.Set;
import org.apache.pluto.driver.services.impl.resource.ResourceConfig;
import org.apache.pluto.driver.services.portal.PropertyConfigService;
/**
* Default implementation of all of the portal Services.
* Utilizes resource configuration from
* pluto-portal-driver-config.xml
*
* copied from https://svn.apache.org/repos/asf/portals/pluto/tags/pluto-1.1.6/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/impl/resource/PropertyConfigServiceImpl.java
*
* @since Aug 10, 2005
*/
public class PropertyConfigServiceImpl implements
PropertyConfigService {
// private static final Log LOG =
// LogFactory.getLog(PropertyConfigServiceImpl.class);
private ResourceConfig config;
public PropertyConfigServiceImpl() {
}
public PropertyConfigServiceImpl(ResourceConfig config) {
this.config = config;
}
// /**
// * Initialization Lifecycle Method
// * @param ctx ServletContext for finding resources
// */
// public void init(ResourceSource ctx) {
// }
//
// /**
// * 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();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy