portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r470506 - /portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/profiler.xml
Date Thu, 02 Nov 2006 20:26:47 GMT
Author: taylor
Date: Thu Nov  2 12:26:46 2006
New Revision: 470506

URL: http://svn.apache.org/viewvc?view=rev&rev=470506
Log:
http://issues.apache.org/jira/browse/JS2-461 - Serializer component
patch from Hajo Birthelmer (hajo@bluesunrise.com)
phase 1 of 2 patches

* extended profiler to support factories for OM objects (rules, criterion,locator)
* factory create OM objects via spring 
* change constructor for profiler to use factories

Modified:
    portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/profiler.xml

Modified: portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/profiler.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/profiler.xml?view=diff&rev=470506&r1=470505&r2=470506
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/profiler.xml (original)
+++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/assembly/profiler.xml Thu Nov  2 12:26:46
2006
@@ -27,6 +27,28 @@
         <constructor-arg index="2">
             <ref bean="ProfileResolvers" />            
         </constructor-arg>                   
+ 		<!--  pass reference to profiling rule implementations -->
+		<constructor-arg index="3">
+			<map>
+				<entry key="locator">
+					<value>ProfileLocator</value>
+				</entry>
+				<entry key="principal">
+					<value>PrincipalRule</value>
+				</entry>
+	
+				<entry key="standard">
+					<value>StandardProfilingRule</value>
+				</entry>
+				<entry key="fallback">
+					<value>RoleFallbackProfilingRule</value>
+				</entry>
+			</map>
+		</constructor-arg>
+		<!--  pass reference to rule criterion -->
+		<constructor-arg index="4">
+			<value>RuleCriterion</value>
+		</constructor-arg>
     </bean>
 
     <bean id="org.apache.jetspeed.profiler.Profiler" name="profiler" parent="baseTransactionProxy">
@@ -126,5 +148,23 @@
     <bean id='NavigationCriterionResolver' class='org.apache.jetspeed.profiler.rules.impl.NavigationCriterionResolver'></bean>
     <bean id='UserAgentCriterionResolver' class='org.apache.jetspeed.profiler.rules.impl.UserAgentCriterionResolver'></bean>
     <bean id='IPCriterionResolver' class='org.apache.jetspeed.profiler.rules.impl.IPCriterionResolver'></bean>
+
+	<!-- Profiling Rules -->
+
+	<!-- Standard Profiler -->
+	<bean id="StandardProfilingRule" class="org.apache.jetspeed.profiler.rules.impl.StandardProfilingRule"
singleton="false"></bean>
+
+	<!-- Fallback Profiler -->
+	<bean id="RoleFallbackProfilingRule" class="org.apache.jetspeed.profiler.rules.impl.RoleFallbackProfilingRule"
singleton="false"></bean>
+
+	<!-- Locator -->
+	<bean id="ProfileLocator" class="org.apache.jetspeed.profiler.impl.JetspeedProfileLocator"
singleton="false"></bean>
+
+	<!-- Principal Rule -->
+	<bean id="PrincipalRule" class="org.apache.jetspeed.profiler.rules.impl.PrincipalRuleImpl"
singleton="false"></bean>
+
+
+	<!-- Rule Criterion -->
+	<bean id="RuleCriterion" class="org.apache.jetspeed.profiler.rules.impl.RuleCriterionImpl"
singleton="false"></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