[jboss-cvs] jboss-seam/src/ioc/org/jboss/seam/ioc ...
Gavin King
gavin.king at jboss.com
Wed Jun 20 13:47:18 EDT 2007
User: gavin
Date: 07/06/20 13:47:18
Modified: src/ioc/org/jboss/seam/ioc IoCComponent.java
Log:
refactored interception annotations
Revision Changes Path
1.4 +3 -3 jboss-seam/src/ioc/org/jboss/seam/ioc/IoCComponent.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: IoCComponent.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/ioc/org/jboss/seam/ioc/IoCComponent.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- IoCComponent.java 28 Feb 2007 15:43:13 -0000 1.3
+++ IoCComponent.java 20 Jun 2007 17:47:18 -0000 1.4
@@ -24,10 +24,10 @@
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
+
import javax.servlet.http.HttpSessionActivationListener;
import org.jboss.seam.Component;
-import org.jboss.seam.InterceptionType;
import org.jboss.seam.ScopeType;
import org.jboss.seam.core.Mutable;
import org.jboss.seam.intercept.Proxy;
@@ -72,7 +72,7 @@
Object bean = instantiateIoCBean();
// initialize the bean following Component.instantiateJavaBean()'s
// pattern.
- if (getInterceptionType() == InterceptionType.NEVER)
+ if ( !isInterceptionEnabled() )
{
// Only call postConstruct if the bean is not stateless otherwise in the case of a singleton it wowuld be
// called every time seam request the bean not just when it is created.
@@ -81,7 +81,7 @@
callPostConstructMethod(bean);
}
}
- else if (!(bean instanceof Proxy))
+ else if ( !(bean instanceof Proxy) )
{
// Add all of the interfaces of the bean instance into the Seam
// proxy bean because spring's proxies add a bunch of interfaces too
More information about the jboss-cvs-commits
mailing list