[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...
Gavin King
gavin.king at jboss.com
Sat Mar 3 13:22:41 EST 2007
User: gavin
Date: 07/03/03 13:22:41
Modified: src/main/org/jboss/seam/core Init.java
Log:
JBSEAM-980, @Converter, @Validator
Revision Changes Path
1.40 +33 -2 jboss-seam/src/main/org/jboss/seam/core/Init.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Init.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/Init.java,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -b -r1.39 -r1.40
--- Init.java 13 Feb 2007 15:07:27 -0000 1.39
+++ Init.java 3 Mar 2007 18:22:41 -0000 1.40
@@ -1,4 +1,4 @@
-//$Id: Init.java,v 1.39 2007/02/13 15:07:27 sbryzak2 Exp $
+//$Id: Init.java,v 1.40 2007/03/03 18:22:41 gavin Exp $
package org.jboss.seam.core;
@@ -58,6 +58,12 @@
private Set<String> installedFilters = new HashSet<String>();
private Set<String> resourceProviders = new HashSet<String>();
+ private Set<String> hotDeployableComponents = new HashSet<String>();
+
+ private Map<String, String> converters = new HashMap<String, String>();
+ private Map<String, String> validators = new HashMap<String, String>();
+ private Map<Class, String> convertersByClass = new HashMap<Class, String>();
+
@Create
public void create()
{
@@ -177,7 +183,7 @@
{
if ( factories.containsKey(variable) || factoryMethodBindings.containsKey(variable) || factoryValueBindings.containsKey(variable) )
{
- throw new IllegalStateException("duplicate factory for: " + variable);
+ //throw new IllegalStateException("duplicate factory for: " + variable);
}
}
@@ -385,4 +391,29 @@
{
return resourceProviders;
}
+
+ public Set<String> getHotDeployableComponents()
+ {
+ return hotDeployableComponents;
+ }
+
+ public void addHotDeployableComponent(String name)
+ {
+ this.hotDeployableComponents.add(name);
+ }
+
+ public Map<String, String> getConverters()
+ {
+ return converters;
+ }
+
+ public Map<Class, String> getConvertersByClass()
+ {
+ return convertersByClass;
+ }
+
+ public Map<String, String> getValidators()
+ {
+ return validators;
+ }
}
More information about the jboss-cvs-commits
mailing list