[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...
Gavin King
gavin.king at jboss.com
Tue Oct 31 01:40:24 EST 2006
User: gavin
Date: 06/10/31 01:40:23
Modified: src/main/org/jboss/seam Component.java
Log:
fix unit tests
Revision Changes Path
1.199 +6 -3 jboss-seam/src/main/org/jboss/seam/Component.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Component.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
retrieving revision 1.198
retrieving revision 1.199
diff -u -b -r1.198 -r1.199
--- Component.java 31 Oct 2006 06:07:55 -0000 1.198
+++ Component.java 31 Oct 2006 06:40:23 -0000 1.199
@@ -117,7 +117,7 @@
*
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
* @author Gavin King
- * @version $Revision: 1.198 $
+ * @version $Revision: 1.199 $
*/
@Scope(ScopeType.APPLICATION)
@SuppressWarnings("deprecation")
@@ -710,10 +710,13 @@
{
addInterceptor( new Interceptor( new ConversationalInterceptor(), this ) );
}
+ if ( Contexts.isApplicationContextActive() ) //ugh, for unit tests
+ {
if ( Init.instance().isJbpmInstalled() )
{
addInterceptor( new Interceptor( new BusinessProcessInterceptor(), this ) );
}
+ }
addInterceptor( new Interceptor( new ConversationInterceptor(), this ) );
addInterceptor( new Interceptor( new OutcomeInterceptor(), this ) );
if ( needsInjection() || needsOutjection() )
More information about the jboss-cvs-commits
mailing list