portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r474658 - /portals/jetspeed-1/trunk/webapp/WEB-INF/conf/assembly/alternate/jetspeed-spring.xml
Date Tue, 14 Nov 2006 04:59:13 GMT
Author: taylor
Date: Mon Nov 13 20:59:12 2006
New Revision: 474658

URL: http://svn.apache.org/viewvc?view=rev&rev=474658
Log:
optional spring assembly for update listener

Added:
    portals/jetspeed-1/trunk/webapp/WEB-INF/conf/assembly/alternate/jetspeed-spring.xml

Added: portals/jetspeed-1/trunk/webapp/WEB-INF/conf/assembly/alternate/jetspeed-spring.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-1/trunk/webapp/WEB-INF/conf/assembly/alternate/jetspeed-spring.xml?view=auto&rev=474658
==============================================================================
--- portals/jetspeed-1/trunk/webapp/WEB-INF/conf/assembly/alternate/jetspeed-spring.xml (added)
+++ portals/jetspeed-1/trunk/webapp/WEB-INF/conf/assembly/alternate/jetspeed-spring.xml Mon
Nov 13 20:59:12 2006
@@ -0,0 +1,411 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed 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.
+-->
+
+<!-- Use this alternate configuration with the FusionUpdateEventListener -->
+
+<beans>
+
+
+   <!-- Commons configuration object generated from jetspeed.properties -->
+   <bean id="portal_configuration"
+      class="org.apache.commons.configuration.PropertiesConfiguration">
+    <constructor-arg>
+      <value>${applicationRoot}/WEB-INF/conf/fusion.properties</value>
+    </constructor-arg>
+  </bean>
+
+  <!-- ServletConfig -->
+    <bean id="javax.servlet.ServletConfig"
+        class="org.apache.jetspeed.components.factorybeans.ServletConfigFactoryBean"
+  />
+  
+  <!-- Portlet Services --> 
+  <bean id="PortalServices"
+       class="org.apache.jetspeed.services.JetspeedPortletServices" >
+       <constructor-arg>
+        <map>
+  	   	  <entry key="PortletRegistryComponent">
+  	   	  	<ref bean="org.apache.jetspeed.components.portletregistry.PortletRegistry" />
+  	   	  </entry>
+          <entry key="PAM">
+            <ref bean="PAM" />
+          </entry>
+           <!-- ApplicationServerManager currently only supported for Tomcat. Comment
out for others like JBoss -->
+          <entry key="ApplicationServerManager">
+            <ref bean="org.apache.jetspeed.tools.pamanager.servletcontainer.ApplicationServerManager"/>
+          </entry>
+          <entry key="PortletFactory">
+            <ref bean="portletFactory"/>
+          </entry>
+          <entry key="DeploymentManager">
+            <ref bean="deploymentManager"/>
+          </entry>
+        </map>
+       </constructor-arg>
+  </bean>
+  
+  <bean id="org.apache.jetspeed.prefs.PreferencesProvider" parent="baseTransactionProxy"

+  	name="prefsProvider"
+  	>
+		<property name="proxyInterfaces">
+			<value>org.apache.jetspeed.prefs.PreferencesProvider</value>
+		</property>
+
+		<property name="target"> 
+			<ref bean="PreferencesProviderImpl"/>
+		</property>
+		<property name="transactionAttributes">
+			<props>
+				<prop key="createNode*">PROPAGATION_REQUIRED</prop>
+				<prop key="storeNode*">PROPAGATION_REQUIRED</prop>
+				<prop key="removeNode*">PROPAGATION_REQUIRED</prop>
+				<prop key="*">PROPAGATION_SUPPORTS</prop>
+			</props>
+		</property>
+  </bean>
+
+  <!-- ID Generator -->
+  <bean id="IdGenerator"
+       class="org.apache.jetspeed.idgenerator.JetspeedIdGenerator" init-method="start" destroy-method="stop"
>
+       <!-- ID Start value -->
+       <constructor-arg index="0"><value>65536</value></constructor-arg>
+       <!-- ID Prefix -->
+       <constructor-arg index="1"><value>P-</value></constructor-arg>
+       <!-- ID Suffix -->
+       <constructor-arg index="2"><value></value></constructor-arg>
+  </bean>
+
+  <!-- Page File Cache -->
+  <bean id="PageFileCache"
+       class="org.apache.jetspeed.cache.file.FileCache" >
+       <!-- Scan rate for changes in cached files on the file system -->
+       <constructor-arg index="0"><value>120</value></constructor-arg>
+       <!-- Cache size -->
+       <constructor-arg index="1"><value>100</value></constructor-arg>
+  </bean>
+
+  <!-- Portlet Registry DAO-->
+  <bean id="portletRegistryImpl" class="org.apache.jetspeed.components.portletregistry.PersistenceBrokerPortletRegistry"
init-method="init">
+        <constructor-arg index="0"><value>META-INF/registry_repository.xml</value></constructor-arg>
+        <constructor-arg index="1"><ref bean="portletFactory"/></constructor-arg>
+  </bean>
+		    
+	<bean id="org.apache.jetspeed.components.portletregistry.PortletRegistry"
+		  name="portletRegistry"
+		  parent="baseTransactionProxy" >
+		<property name="proxyInterfaces">
+			<value>org.apache.jetspeed.components.portletregistry.PortletRegistry</value>
+		</property>
+
+		<property name="target"> 
+			<ref bean="portletRegistryImpl"/>
+		</property>
+		<property name="transactionAttributes">
+			<props>				
+				<prop key="register*">PROPAGATION_REQUIRED,-org.apache.jetspeed.components.portletregistry.RegistryException</prop>
+				<prop key="remove*">PROPAGATION_REQUIRED,-org.apache.jetspeed.components.portletregistry.RegistryException</prop>
+				<prop key="update*">PROPAGATION_REQUIRED,-org.apache.jetspeed.components.portletregistry.RegistryException</prop>
+				<prop key="save*">PROPAGATION_REQUIRED,-org.apache.jetspeed.components.portletregistry.RegistryException</prop>
+				<prop key="*">PROPAGATION_SUPPORTS</prop>
+			</props>
+		</property>
+	</bean>
+
+<!-- Portlet Entity Access DAO-->
+  <!--
+  <bean id="systemCache" class="org.apache.jetspeed.cache.general.SimpleHashMapCache"
/>
+     
+     <bean id="systemCachingInterceptor" class="org.apache.jetspeed.components.interceptors.CachingInterceptor"
>
+    	<constructor-arg>
+    		<ref bean="systemCache"/>
+    	</constructor-arg>
+     </bean>
+    
+    <bean id="systemRemoveFromCacheInterceptor" class="org.apache.jetspeed.components.interceptors.RemoveFromCacheInterceptor"
>
+    	<constructor-arg>
+    		<ref bean="systemCache"/>
+    	</constructor-arg>
+    </bean>   	
+    
+    <bean id="portletEntityCachingAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
+        <property name="advice">
+             <ref bean="systemCachingInterceptor"/>
+        </property>
+        <property name="patterns">
+         <list>
+            <value>.*getPortletEntity.*</value>
+        </list>
+       </property>
+    </bean>
+    
+    <bean id="portletEntityRemoveFromCacheAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
+        <property name="advice">
+             <ref bean="systemRemoveFromCacheInterceptor"/>
+        </property>
+        <property name="patterns">
+         <list>
+            <value>.*removePortletEntity.*</value>
+        </list>
+       </property>
+    </bean>
+    
+    -->
+    <!--
+	  - PortletEntity business object: OJB implementation, as an inner bean wrapped
+		- by an outer transactional proxy. The two bean definitions could have been separate,
+		- but this is cleaner as there is no need to ever access the unwrapped object.
+    -->
+
+    <bean id="portletEntityAccessImpl" class="org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess"
>
+    	<constructor-arg>
+    		<ref bean="portletRegistry"/>    		
+    	</constructor-arg>
+    </bean>
+    
+
+	<bean id="org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent"
parent="baseTransactionProxy" 
+		name="portletEntityAccess" >
+		<property name="proxyInterfaces">
+			<value>org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent</value>
+		</property>
+		<property name="target">
+			<ref bean="portletEntityAccessImpl"/>
+		</property>
+		<!--
+		<property name="preInterceptors">
+			<list>
+				<ref bean="portletEntityCachingAdvisor"/>
+				<ref bean="portletEntityRemoveFromCacheAdvisor"/>
+			</list>
+		</property>
+		-->
+		<property name="transactionAttributes">
+			<props>				
+				<prop key="remove*">PROPAGATION_REQUIRED</prop>
+				<prop key="store*">PROPAGATION_REQUIRED,-org.apache.jetspeed.components.portletentity.PortletEntityNotStoredException</prop>
+				<prop key="*">PROPAGATION_SUPPORTS</prop>
+			</props>
+		</property>
+	</bean>
+
+  <!-- Capabilities DAO-->
+  <bean id="capabilitiesImpl" class="org.apache.jetspeed.capabilities.impl.JetspeedCapabilities"
init-method="init">
+    	<constructor-arg>
+    		<value>META-INF/capabilities-ojb.xml</value>
+    	</constructor-arg>
+    </bean>
+  
+  <!-- Capabilities -->  
+  <bean id="org.apache.jetspeed.capabilities.Capabilities" 
+        name="capabilities"
+        parent="baseTransactionProxy"        
+  >  	   
+		<property name="proxyInterfaces">
+			<value>org.apache.jetspeed.capabilities.Capabilities</value>
+		</property>
+		<property name="target">
+			<ref bean="capabilitiesImpl"/>
+		</property>
+		<property name="transactionAttributes">
+			<props>				
+				<prop key="*">PROPAGATION_SUPPORTS</prop>
+			</props>
+		</property>		  	   
+  </bean>
+
+  <!-- User Info -->
+  <bean id="org.apache.jetspeed.userinfo.UserInfoManager"
+       class="org.apache.jetspeed.fusion.userinfo.impl.FusionUserInfoManagerImpl"
+  >
+     <constructor-arg ><ref bean="org.apache.jetspeed.components.portletregistry.PortletRegistry"/></constructor-arg>
+  </bean>
+
+ <!-- Preferences Implementation -->
+   <bean id="PreferencesProviderImpl" 
+  	   class="org.apache.jetspeed.prefs.impl.PersistenceBrokerPreferencesProvider"
+  	   init-method="init"
+   >  	   
+  	   <constructor-arg index="0"><value>META-INF/prefs_repository.xml</value></constructor-arg>
 	   
+  	   <constructor-arg type="boolean" index="1"><value>false</value></constructor-arg>
 	     	   
+  </bean>
+
+   <!-- Property Manager -->
+   <bean id="PropertyManagerImpl" 
+  	   class="org.apache.jetspeed.prefs.impl.PropertyManagerImpl"
+  >  	   
+      <!-- We don't use the Tx proxied prefs provider so that we can demarcate Txs
+      	   exclusively for the PropertyManager -->
+  	   <constructor-arg ><ref bean="PreferencesProviderImpl"/></constructor-arg>
 	   
+  </bean>
+
+
+  <!--  Navigational State component -->
+  <bean id="org.apache.jetspeed.container.state.NavigationalStateComponent" 
+  	   class="org.apache.jetspeed.container.state.impl.JetspeedNavigationalStateComponent"
+  >  	   
+       <constructor-arg index="0"><value>org.apache.jetspeed.container.state.impl.SessionFullNavigationalState</value></constructor-arg>
+       <constructor-arg index="1"><value>org.apache.jetspeed.fusion.container.url.impl.FusionPathInfoEncodingPortalURL</value></constructor-arg>
+       <constructor-arg index="2"><value>org.apache.jetspeed.container.state.impl.JetspeedNavigationalStateCodec</value></constructor-arg>
      
+  </bean>
+
+  <!-- Request Context -->
+   <bean id="org.apache.jetspeed.request.RequestContextComponent" 
+  	   class="org.apache.jetspeed.request.JetspeedRequestContextComponent"
+  >  	   
+  	   <constructor-arg ><value>org.apache.jetspeed.request.JetspeedRequestContext</value></constructor-arg>
+  	   <constructor-arg ><ref bean="org.apache.jetspeed.userinfo.UserInfoManager"
/></constructor-arg>  	   
+  </bean>
+
+<!-- Portlet Window Component -->
+  <bean id="org.apache.jetspeed.container.window.PortletWindowAccessor" 
+  	   class="org.apache.jetspeed.container.window.impl.PortletWindowAccessorImpl"
+  >  	   
+  	   <constructor-arg ><ref bean="org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent"
/></constructor-arg>
+  </bean>
+  
+  <!-- Pluto Portlet Container -->
+  <bean id="Pluto" class="org.apache.pluto.PortletContainerImpl" />
+
+  <!-- Jetspeed 2's wrapper around Pluto -->
+  <bean id="org.apache.pluto.PortletContainer"
+       class="org.apache.jetspeed.container.JetspeedPortletContainerWrapper"  >
+       <constructor-arg ><ref bean="Pluto" /></constructor-arg>
+  </bean>
+
+  <!-- Portlet Renderer -->
+  <bean id="org.apache.jetspeed.aggregator.PortletRenderer"
+       class="org.apache.jetspeed.aggregator.impl.PortletRendererImpl"
+       init-method="start" destroy-method="stop"
+  >
+       <constructor-arg ><ref bean="org.apache.pluto.PortletContainer" /></constructor-arg>
+       <constructor-arg ><ref bean="org.apache.jetspeed.container.window.PortletWindowAccessor"
/></constructor-arg>
+  </bean>
+
+  <!-- Portlet Factory -->
+  <bean id="portletFactory"
+       class="org.apache.jetspeed.factory.JetspeedPortletFactory"
+  >
+  </bean>
+
+  <!-- Aggregation: Page -->
+  <bean id="org.apache.jetspeed.aggregator.PageAggregator"
+       class="org.apache.jetspeed.aggregator.impl.PageAggregatorImpl"  >
+       <constructor-arg index="0" ><ref bean="org.apache.jetspeed.aggregator.PortletRenderer"
/></constructor-arg>
+       <!-- Aggregation Strategies:
+            0 = PageAggregatorImpl.STRATEGY_SEQUENTIAL
+            1 = PageAggregatorImpl.STRATEGY_PARALLEL
+         -->
+       <constructor-arg index="1"><value>0</value></constructor-arg>
+       <constructor-arg index="2">
+        <list>
+            <value>portlet/{mediaType}/jetspeed</value>
+            <value>portlet/{mediaType}</value>
+            <value>layout/{mediaType}</value>
+            <value>generic/{mediaType}</value>
+            <value>{mediaType}</value>
+        </list>
+       </constructor-arg>
+  </bean>
+
+  <!-- Aggregation: Portlet -->
+  <bean id="org.apache.jetspeed.aggregator.PortletAggregator"
+       class="org.apache.jetspeed.aggregator.impl.PortletAggregatorImpl"  >
+       <constructor-arg  ><ref bean="org.apache.jetspeed.aggregator.PortletRenderer"
/></constructor-arg>
+  </bean>
+
+  <!-- Application Server Manager for Tomcat. Comment out for others like JBoss
+       Provides hooks into the application server to help us deploy portlet applications
+       as web application into that server.  This manager is for Tomcat 5
+    -->
+  <bean id="org.apache.jetspeed.tools.pamanager.servletcontainer.ApplicationServerManager"
+       class="org.apache.jetspeed.tools.pamanager.servletcontainer.TomcatManager"
+       init-method="start" destroy-method="stop"
+  >
+       <constructor-arg index="0"><value>${autodeployment.catalina.base}</value></constructor-arg>
+       <constructor-arg index="1"><value>${autodeployment.catalina.engine}</value></constructor-arg>
+       <constructor-arg index="2"><value>${autodeployment.server}</value></constructor-arg>
+       <constructor-arg index="3"><value>${autodeployment.port}</value></constructor-arg>
+       <constructor-arg index="4"><value>${autodeployment.user}</value></constructor-arg>
+       <constructor-arg index="5"><value>${autodeployment.password}</value></constructor-arg>
+  </bean>
+
+  <bean id="deployFactory" class="org.apache.jetspeed.tools.deploy.JetspeedDeployFactory"/>
+
+  <!-- Portlet Application Manager
+       Manages portlet application to Jetspeed's portlet registry
+    -->
+   <bean id="PAM"
+       class="org.apache.jetspeed.fusion.tools.pamanager.FusionPAM"
+  >
+       <constructor-arg><ref bean="portletFactory"/></constructor-arg>
+       <constructor-arg><ref bean="org.apache.jetspeed.components.portletregistry.PortletRegistry"/></constructor-arg>
+       <constructor-arg><ref bean="org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent"/></constructor-arg>
+       <constructor-arg><ref bean="org.apache.jetspeed.container.window.PortletWindowAccessor"/></constructor-arg>
+  </bean>
+
+  <!-- Portlet Application deployment event listener -->
+  <bean id="portletAppDeploymentListener"
+       class="org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener"
+  >
+       <constructor-arg index="0"><ref bean="PAM"/></constructor-arg>
+       <constructor-arg index="1"><ref bean="org.apache.jetspeed.components.portletregistry.PortletRegistry"/></constructor-arg>
+       <constructor-arg index="2"><value>${autodeployment.target.dir}</value></constructor-arg>
+       <constructor-arg index="3"><value>${applicationRoot}/WEB-INF/apps</value></constructor-arg>
+       <!-- strip commons-logging and/or log4j jars from war files: for JBoss set this
to true -->
+       <constructor-arg index="4"><value>false</value></constructor-arg>
  
+  </bean>
+
+  <!-- The deployment manager watches a specific staging directory for
+       deploying components.  What components get deployed depend of
+       DeploymentEventListeners registered to it.
+   -->
+  <bean id="deploymentManager"
+       class="org.apache.jetspeed.fusion.tools.pamanager.FusionUpdateDeploymentManager"
+       init-method="start" destroy-method="stop"
+  >
+       <constructor-arg ><value>${autodeployment.staging.dir}</value></constructor-arg>
+       <constructor-arg type="long" ><value>${autodeployment.delay}</value></constructor-arg>
+       <constructor-arg >
+         <list>
+            <ref bean="portletAppDeploymentListener"/>
+			<ref bean="fusionUpdateEventListener"/>
+         </list>
+       </constructor-arg>
+  </bean>
+
+  <!-- Portlet Application deployment event listener -->
+  <bean id="fusionUpdateEventListener"
+       class="org.apache.jetspeed.fusion.tools.pamanager.FusionUpdateEventListener"
+  >
+       <constructor-arg index="0"><ref bean="PAM"/></constructor-arg>
+       <constructor-arg index="1"><ref bean="org.apache.jetspeed.components.portletregistry.PortletRegistry"/></constructor-arg>
+	   <constructor-arg index='2'><ref bean='portletEntityAccessImpl'/></constructor-arg>
+       <constructor-arg index="3"><value>${autodeployment.target.dir}</value></constructor-arg>
+  </bean>
+
+	
+
+  <!-- Adds jetspeed.properties as our configuration object to support ${...} vars -->
+  <!-- ${applicationRoot} is acutally set as a system property via the SpringEngine -->
+
+  <bean id="placeholderConfig"
+      class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+    <property name="location"><value>file:///${applicationRoot}/WEB-INF/conf/fusion.properties</value></property>
+  </bean>
+
+</beans>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message