blob: 6b45907d666118c0daf2cd607d295a3c4f56e538 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<!--
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.
-->
<!--
************************************************************
NOTE:
The following configuration file contains the spring bean
configuration needed to run the pluto-portal in memory
mode. Optional services are available which allow
persistence to an rdbms, xml files, etc. . . however,
we strongly recomend that if you are looking at these
advanced features that you consider an enterprise portal
such as Apache Jetspeed.
Service Functions Include:
- Preference Persistence
- User Attribute Persistence
- Portlet Registry
- Page Registry
************************************************************
-->
<beans>
<bean id="PortletContainer"
class="org.apache.pluto.container.impl.PortletContainerImpl"
init-method="init"
singleton="true">
<constructor-arg>
<bean factory-bean="DriverConfiguration" factory-method="getPortalName"/>
</constructor-arg>
<constructor-arg>
<ref bean="PortalDriverServices"/>
</constructor-arg>
</bean>
<bean id="PlutoServices"
class="org.apache.pluto.container.driver.PlutoServices"
singleton="true">
<constructor-arg>
<ref bean="PortalDriverServices"/>
</constructor-arg>
</bean>
<bean id="PortalDriverServices"
class="org.apache.pluto.driver.container.PortalDriverServicesImpl"
singleton="true">
<constructor-arg>
<ref bean="PortalContext"/>
</constructor-arg>
<constructor-arg>
<ref bean="PortletRequestContextService"/>
</constructor-arg>
<constructor-arg>
<ref bean="EventCoordinationService"/>
</constructor-arg>
<constructor-arg>
<ref bean="FilterManagerService"/>
</constructor-arg>
<constructor-arg>
<ref bean="PortletURLListenerService"/>
</constructor-arg>
<constructor-arg>
<null/>
<!--<bean class="org.apache.pluto.driver.container.DefaultOptionalContainerServices"/>-->
</constructor-arg>
<constructor-arg>
<ref bean="PortletContextService"/>
</constructor-arg>
<constructor-arg>
<ref bean="PortletContextService"/>
</constructor-arg>
<constructor-arg>
<bean class="org.apache.pluto.driver.container.DefaultPortalAdministrationService"/>
</constructor-arg>
</bean>
<bean id="PortalContext"
class="org.apache.pluto.driver.services.container.PortalContextImpl">
<constructor-arg>
<ref bean="DriverConfiguration"/>
</constructor-arg>
</bean>
<!-- ================================================ -->
<!-- The single top element of the configuration tree -->
<!-- ================================================ -->
<bean id="DriverConfiguration"
class="org.apache.pluto.driver.config.impl.DriverConfigurationImpl">
<!-- ===== Portal Services ===== -->
<constructor-arg>
<ref bean="PortalURLParser"/>
</constructor-arg>
<constructor-arg>
<ref bean="ResourceConfigFactory"/>
</constructor-arg>
<constructor-arg>
<ref bean="RenderConfigService"/>
</constructor-arg>
<constructor-arg>
<ref bean="SupportedModesService"/>
</constructor-arg>
<constructor-arg>
<ref bean="SupportedWindowStatesService"/>
</constructor-arg>
<!--
<property name="portletPreferencesService"><ref bean="PortletPreferencesService"/></property>
-->
</bean>
<!-- ================================================ -->
<!-- The single top element of the administration tree -->
<!-- ================================================ -->
<bean id="AdminConfiguration" class="org.apache.pluto.driver.config.impl.AdminConfigurationImpl">
<property name="renderConfigAdminService">
<ref bean="RenderConfigService"/>
</property>
</bean>
<!-- ================================================ -->
<!-- Portal Services injected into the Configuration -->
<!-- ================================================ -->
<bean id="ResourceConfigFactory" class="org.apache.pluto.driver.services.impl.resource.StaticServletContextResourceConfigFactory"
factory-method="getResourceConfig">
</bean>
<bean id="PortalURLParser"
class="org.apache.pluto.driver.url.impl.PortalURLParserImpl"
factory-method="getParser"
singleton="true">
</bean>
<!--<bean id="ResourceConfigFactory"-->
<!--class="org.apache.pluto.driver.services.impl.resource.PropertyConfigServiceImpl"-->
<!--singleton="true">-->
<!--<constructor-arg>-->
<!--<ref bean="ResourceConfigFactory"/>-->
<!--</constructor-arg>-->
<!--</bean>-->
<bean id="RenderConfigService"
class="org.apache.pluto.driver.services.impl.resource.RenderConfigServiceImpl"
singleton="true">
<constructor-arg>
<ref bean="ResourceConfigFactory"/>
</constructor-arg>
</bean>
<bean id="SupportedModesService"
class="org.apache.pluto.driver.services.impl.resource.SupportedModesServiceImpl"
singleton="true">
<constructor-arg>
<ref bean="ResourceConfigFactory"/>
</constructor-arg>
<constructor-arg>
<ref bean="PortletContextService"/>
</constructor-arg>
<constructor-arg>
<ref bean="PortletContextService"/>
</constructor-arg>
</bean>
<bean id="SupportedWindowStatesService"
class="org.apache.pluto.driver.services.impl.resource.SupportedWindowStateServiceImpl"
singleton="true">
<constructor-arg>
<ref bean="ResourceConfigFactory"/>
</constructor-arg>
<constructor-arg>
<ref bean="PortletContextService"/>
</constructor-arg>
</bean>
<!-- ================================================ -->
<!-- Container Services injected into Configuration -->
<!-- ================================================ -->
<bean id="PortletRequestContextService"
class="org.apache.pluto.driver.services.container.PortletRequestContextServiceImpl"
singleton="true">
</bean>
<bean id="EventCoordinationService"
class="org.apache.pluto.driver.services.container.EventCoordinationServiceImpl"
singleton="true">
<constructor-arg>
<ref bean="PortletContextService"/>
</constructor-arg>
<constructor-arg>
<ref bean="PortletContextService"/>
</constructor-arg>
</bean>
<bean id="FilterManagerService"
class="org.apache.pluto.driver.services.container.FilterManagerServiceImpl"
singleton="true">
</bean>
<bean id="PortletURLListenerService"
class="org.apache.pluto.driver.services.container.PortletURLListenerServiceImpl"
singleton="true">
</bean>
<bean id="PortletContextService"
class="org.apache.pluto.driver.container.PortletContextManager">
<constructor-arg>
<ref bean="RequestDispatcherService"/>
</constructor-arg>
<constructor-arg>
<bean class="org.apache.pluto.container.impl.PortletAppDescriptorServiceImpl"/>
</constructor-arg>
</bean>
<bean id="RequestDispatcherService"
class="org.apache.pluto.container.impl.RequestDispatcherServiceImpl">
</bean>
</beans>