[jboss-cvs] jboss-seam/src/main/org/jboss/seam ...
Gavin King
gavin.king at jboss.com
Mon Jul 17 16:14:42 EDT 2006
User: gavin
Date: 06/07/17 16:14:42
Modified: src/main/org/jboss/seam Component.java
Log:
oops
Revision Changes Path
1.147 +3 -2 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.146
retrieving revision 1.147
diff -u -b -r1.146 -r1.147
--- Component.java 17 Jul 2006 18:11:36 -0000 1.146
+++ Component.java 17 Jul 2006 20:14:42 -0000 1.147
@@ -86,7 +86,7 @@
*
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
* @author Gavin King
- * @version $Revision: 1.146 $
+ * @version $Revision: 1.147 $
*/
@Scope(ScopeType.APPLICATION)
public class Component
@@ -1372,6 +1372,7 @@
}
}
scope.getContext().set(name, result);
+ return result;
}
else //usually a factory method with a void return type
{
@@ -1379,8 +1380,8 @@
{
throw new IllegalArgumentException("factory method with defined scope outjected a value: " + name);
}
+ return value;
}
- return result;
}
public static Object newInstance(String name)
More information about the jboss-cvs-commits
mailing list