[jboss-cvs] jboss-seam/src/main/org/jboss/seam/init ...
Shane Bryzak
Shane_Bryzak at symantec.com
Sat Feb 10 02:32:33 EST 2007
User: sbryzak2
Date: 07/02/10 02:32:33
Modified: src/main/org/jboss/seam/init Initialization.java
Log:
JBSEAM-790
Revision Changes Path
1.145 +14 -2 jboss-seam/src/main/org/jboss/seam/init/Initialization.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Initialization.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/init/Initialization.java,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -b -r1.144 -r1.145
--- Initialization.java 4 Feb 2007 08:08:05 -0000 1.144
+++ Initialization.java 10 Feb 2007 07:32:33 -0000 1.145
@@ -49,11 +49,12 @@
import org.jboss.seam.util.Resources;
import org.jboss.seam.util.Strings;
import org.jboss.seam.util.XML;
+import org.jboss.seam.web.BaseFilter;
/**
* @author Gavin King
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
- * @version $Revision: 1.144 $
+ * @version $Revision: 1.145 $
*/
public class Initialization
{
@@ -694,6 +695,11 @@
}
installedSomething = true;
}
+
+ if (componentDescriptor.isInstalledFilter())
+ {
+ init.addInstalledFilter(componentDescriptor.getComponentClass());
+ }
}
}
@@ -771,7 +777,7 @@
}
/**
- * This actually creates a propert component and should only be called when
+ * This actually creates a proper component and should only be called when
* we want to install a component
*/
protected void addComponent(ComponentDescriptor descriptor, Context context)
@@ -1052,6 +1058,12 @@
return install.precedence();
}
+ public boolean isInstalledFilter()
+ {
+ // They must extend BaseFilter so that they can be disabled
+ return BaseFilter.class.isAssignableFrom(componentClass) && isInstalled();
+ }
+
@Override
public String toString()
{
More information about the jboss-cvs-commits
mailing list