Author: hlship
Date: Thu Apr  2 22:51:36 2009
New Revision: 761462

URL: http://svn.apache.org/viewvc?rev=761462&view=rev
Log:
TAP5-602: Contributing to TypeCoercer with service fails even with 
@InjectService

Modified:
    
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PerThreadServiceLifecycle.java

Modified: 
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PerThreadServiceLifecycle.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PerThreadServiceLifecycle.java?rev=761462&r1=761461&r2=761462&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PerThreadServiceLifecycle.java
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/services/PerThreadServiceLifecycle.java
 Thu Apr  2 22:51:36 2009
@@ -1,4 +1,4 @@
-// Copyright 2006, 2007, 2008 The Apache Software Foundation
+// Copyright 2006, 2007, 2008, 2009 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -41,7 +41,8 @@
 
     private final ClassFactory classFactory;
 
-    public PerThreadServiceLifecycle(PerthreadManager perthreadManager,
+    public PerThreadServiceLifecycle(@Builtin
+    PerthreadManager perthreadManager,
 
                                      @Builtin
                                      ClassFactory classFactory)
@@ -91,7 +92,7 @@
         // Constructor takes a ServiceCreator
 
         cf.addConstructor(new Class[]
-                {ObjectCreator.class}, null, "_creator = $1;");
+                { ObjectCreator.class }, null, "_creator = $1;");
 
         String body = format("return (%s) _creator.createObject();", 
serviceInterface.getName());
 


Reply via email to