[jboss-cvs] jboss-seam/src/main/org/jboss/seam/intercept ...
Gavin King
gavin.king at jboss.com
Fri Feb 16 16:42:08 EST 2007
User: gavin
Date: 07/02/16 16:42:07
Modified: src/main/org/jboss/seam/intercept RootInterceptor.java
Log:
try to fix classloading
Revision Changes Path
1.10 +13 -8 jboss-seam/src/main/org/jboss/seam/intercept/RootInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: RootInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/intercept/RootInterceptor.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- RootInterceptor.java 9 Feb 2007 03:44:22 -0000 1.9
+++ RootInterceptor.java 16 Feb 2007 21:42:07 -0000 1.10
@@ -139,14 +139,19 @@
private SeamInvocationContext createSeamInvocationContext(InvocationContext invocation, EventType eventType) throws Exception
{
- if ( EJB.INVOCATION_CONTEXT_AVAILABLE )
- {
- return new EE5SeamInvocationContext( invocation, eventType, userInterceptors, getComponent().getInterceptors(type) );
+ return EJB.INVOCATION_CONTEXT_AVAILABLE ?
+ createEE5SeamInvocationContext(invocation, eventType) :
+ createNonEE5SeamInvocationContext(invocation, eventType);
}
- else
+
+ private SeamInvocationContext createNonEE5SeamInvocationContext(InvocationContext invocation, EventType eventType)
{
return new SeamInvocationContext( invocation, eventType, userInterceptors, getComponent().getInterceptors(type) );
}
+
+ private SeamInvocationContext createEE5SeamInvocationContext(InvocationContext invocation, EventType eventType)
+ {
+ return new EE5SeamInvocationContext( invocation, eventType, userInterceptors, getComponent().getInterceptors(type) );
}
private String getInterceptionMessage(InvocationContext invocation, EventType eventType)
More information about the jboss-cvs-commits
mailing list