click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r933185 - in /click/trunk/click/extras/src/org/apache/click/extras/spring: PageScopeResolver.java SpringClickServlet.java
Date Mon, 12 Apr 2010 10:44:56 GMT
Author: sabob
Date: Mon Apr 12 10:44:56 2010
New Revision: 933185

URL: http://svn.apache.org/viewvc?rev=933185&view=rev
Log:
javadoc

Modified:
    click/trunk/click/extras/src/org/apache/click/extras/spring/PageScopeResolver.java
    click/trunk/click/extras/src/org/apache/click/extras/spring/SpringClickServlet.java

Modified: click/trunk/click/extras/src/org/apache/click/extras/spring/PageScopeResolver.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/spring/PageScopeResolver.java?rev=933185&r1=933184&r2=933185&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/spring/PageScopeResolver.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/spring/PageScopeResolver.java Mon
Apr 12 10:44:56 2010
@@ -30,26 +30,26 @@ import org.springframework.context.annot
  * Provides a Spring bean scope resolver when using Spring
  * instantiated pages with the @Component annotation.
  * <p/>
- * This scope meta data resolver will resolve "prototype" scope for any Click Page bean,
- * otherwise it will resolve "singleton" scope.
+ * This scope meta data resolver will resolve "prototype" scope for any Click
+ * Page bean, and "singleton" scope for any other bean.
  *
  * <h3>Example &#64;Component Page</h3>
  * An example Page class is provided below which uses the Spring &#64;Component annotation.
  *
- * <pre class="codeJava">
- * <span class="kw">package</span> com.mycorp.page;
+ * <pre class="prettyprint">
+ * package com.mycorp.page;
  *
- * <span class="kw">import</span> javax.annotation.Resource;
- * <span class="kw">import</span> org.apache.click.Page;
- * <span class="kw">import</span> org.springframework.stereotype.Component;
+ * import javax.annotation.Resource;
+ * import org.apache.click.Page;
+ * import org.springframework.stereotype.Component;
  *
- * <span class="kw">import</span> comp.mycorp.service.CustomerService;
+ * import comp.mycorp.service.CustomerService;
  *
- * <span class="green">&#64;Component</span>
- * <span class="kw">public class</span> CustomerEditPage <span class="kw">extends</span>
Page {
+ * &#64;Component
+ * public class CustomerEditPage extends Page {
  *
- *     <span class="green">&#64;Resource</span>(name=<span class="st">"customerService"</span>)
- *     <span class="kw">private</span> CustomerService customerService;
+ *     &#64;Resource(name="customerService")
+ *     private CustomerService customerService;
  *
  *     ..
  * } </pre>
@@ -82,8 +82,8 @@ public class PageScopeResolver implement
 
     /**
      * Return the scope meta data for the given bean definition. This scope meta
-     * data resolver will resolve "prototype" scope for any Click Page bean or will
-     * resolve "singleton" scope otherwise.
+     * data resolver will resolve "prototype" scope for any Click Page bean
+     * and will resolve "singleton" scope for other beans.
      *
      * @see ScopeMetadataResolver#resolveScopeMetadata(BeanDefinition)
      *

Modified: click/trunk/click/extras/src/org/apache/click/extras/spring/SpringClickServlet.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/spring/SpringClickServlet.java?rev=933185&r1=933184&r2=933185&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/spring/SpringClickServlet.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/spring/SpringClickServlet.java Mon
Apr 12 10:44:56 2010
@@ -41,7 +41,7 @@ import org.springframework.context.suppo
 import org.springframework.web.context.support.WebApplicationContextUtils;
 
 /**
- * Provides an Spring framework integration <tt>SpringClickServlet</tt>.
+ * Provides a Spring framework integration <tt>SpringClickServlet</tt>.
  * <p/>
  * This Spring integration servlet provides a number of integration options
  * using Spring with Click pages. These options detailed below.
@@ -311,6 +311,7 @@ public class SpringClickServlet extends 
      *
      * @throws ServletException if the click app could not be initialized
      */
+    @Override
     public void init() throws ServletException {
         super.init();
 
@@ -375,7 +376,7 @@ public class SpringClickServlet extends 
      * Create a new Spring Page bean if defined in the application context, or
      * a new Page instance otherwise.
      * <p/>
-     * If the "inject-paget-beans" option is enable this method will inject
+     * If the "inject-page-beans" option is enabled this method will inject
      * any Spring beans matching the Page's properties.
      *
      * @see ClickServlet#newPageInstance(String, Class, HttpServletRequest)
@@ -386,6 +387,7 @@ public class SpringClickServlet extends 
      * @return a new Page object
      * @throws Exception if an error occurs creating the Page
      */
+    @Override
     protected Page newPageInstance(String path, Class pageClass,
             HttpServletRequest request) throws Exception {
 
@@ -443,6 +445,7 @@ public class SpringClickServlet extends 
      *
      * @param page the page instance to activate
      */
+    @Override
     protected void activatePageInstance(Page page) {
         if (page instanceof ApplicationContextAware) {
             ApplicationContextAware aware =



Mime
View raw message