<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans> 
  
  <bean id="LocalPortletInvokerTarget"
        class="org.apache.jetspeed.container.invoker.LocalPortletInvoker" singleton="false"
  />   
  
  <bean id="LocalPortletInvokerTargetSource" 
    class="org.springframework.aop.target.CommonsPoolTargetSource">
    <property name="targetBeanName"><value>LocalPortletInvokerTarget</value></property>
    <property name="maxSize"><value>25</value></property>
  </bean>

  <bean id="LocalPortletInvoker" 
    class="org.springframework.aop.framework.ProxyFactoryBean"
  >
    <property name="targetSource"><ref local="LocalPortletInvokerTargetSource"/></property>
    <property name="proxyInterfaces">
    	<value>org.apache.jetspeed.container.invoker.JetspeedPortletInvoker</value>
    </property>
  </bean> 
  
      
  
  <bean id="ServletPortletInvokerTarget"
        class="org.apache.jetspeed.container.invoker.ServletPortletInvoker" singleton="false"
  /> 
  
  <bean id="ServletPortletInvokerTargetSource" 
    class="org.springframework.aop.target.CommonsPoolTargetSource">
    <property name="targetBeanName"><value>ServletPortletInvokerTarget</value></property>
    <property name="maxSize"><value>25</value></property>
  </bean>

  <bean id="ServletPortletInvoker" 
    class="org.springframework.aop.framework.ProxyFactoryBean"
  >
    <property name="targetSource"><ref local="ServletPortletInvokerTargetSource"/></property>
    <property name="proxyInterfaces">
    	<value>org.apache.jetspeed.container.invoker.JetspeedPortletInvoker</value>
    </property>
  </bean>     
     
	
	
	
  <bean id="javax.portlet.ActionRequest"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.pluto.factory.impl.ActionRequestFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
  <bean id="javax.portlet.RenderRequest"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.pluto.factory.impl.RenderRequestFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
       <property name="props">
       	<map>
       	 <entry key="myproperty">
       	 	<value>myvalue</value>
       	 </entry>
       	</map>       	
       </property>
  </bean>
  
  <bean id="javax.portlet.RenderResponse"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.pluto.factory.impl.RenderResponseFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
  <bean id="javax.portlet.PortletSession"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.pluto.factory.impl.PortletSessionFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
  <bean id="javax.portlet.PortletConfig"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.pluto.factory.impl.PortletConfigFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
  <bean id="javax.portlet.PortletContext"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.pluto.factory.impl.PortletContextFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
  <bean id="javax.portlet.PortalContext"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.pluto.factory.impl.PortalContextFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
  <bean id="javax.portlet.ActionResponse"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.pluto.factory.impl.ActionResponseFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
  <bean id="javax.portlet.PortletURL"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.pluto.factory.impl.PortletURLFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
  <bean id="javax.portlet.PortletPreferences"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.pluto.factory.impl.PortletPreferencesFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
  <!-- Problem???
  <bean id="javax.portlet.PreferencesValidator"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.pluto.factory.impl.PreferencesValidatorFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  -->
  
  
   <bean id="org.apache.pluto.invoker.PortletInvoker"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.jetspeed.container.invoker.PortletInvokerFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
       <property name="props">
       	<map>
       	 <entry key="PortletFactory">
       	 	<ref bean="portletFactory" />
       	 </entry>
       	 <entry key="LocalPortletInvoker">
       	 	<ref bean="LocalPortletInvoker" />
       	 </entry>
       	 <entry key="ServletPortletInvoker">
       	 	<ref bean="ServletPortletInvoker" />
       	 </entry>
       	</map>       	
       </property>
  </bean>
  
  <bean id="org.apache.pluto.util.NamespaceMapper"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.pluto.util.impl.NamespaceMapperFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
 
  <bean id="org.apache.pluto.services.information.InformationProviderService"
  	    name="org.apache.pluto.services.information.StaticInformationProvider,org.apache.pluto.services.information.DynamicInformationProvider,org.apache.pluto.services.information.PortletActionProvider,org.apache.pluto.services.information.PortalContextProvider"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.jetspeed.services.information.InformationProviderServiceImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>  
  
  <bean id="javax.servlet.http.HttpServletRequest"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.jetspeed.engine.servlet.ServletRequestFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
  <bean id="javax.servlet.http.HttpServletResponse"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.jetspeed.engine.servlet.ServletResponseFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
  <bean id="org.apache.pluto.om.ControllerFactory"
        class="org.apache.jetspeed.components.factorybeans.PlutoFactoryFactoryBean"
  >             
       <property name="className"><value>org.apache.jetspeed.om.ControllerFactoryImpl</value></property>
       <property name="servletConfig"><ref bean="javax.servlet.ServletConfig"/></property>
  </bean>
  
  <bean id="org.apache.pluto.services.log.LogService"
        class="org.apache.jetspeed.container.services.log.PlutoLogService"
  />  
	
</beans>
