You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2011/07/24 06:03:18 UTC
svn commit: r1150279 - in
/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5:
annotations/PageAttached.java runtime/PageLifecycleListener.java
Author: hlship
Date: Sun Jul 24 04:03:17 2011
New Revision: 1150279
URL: http://svn.apache.org/viewvc?rev=1150279&view=rev
Log:
Mark @PageAttached and PageLifecycleListener.containingPageDidAttach() as deprecated
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/PageAttached.java
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/runtime/PageLifecycleListener.java
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/PageAttached.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/PageAttached.java?rev=1150279&r1=1150278&r2=1150279&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/PageAttached.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/annotations/PageAttached.java Sun Jul 24 04:03:17 2011
@@ -1,4 +1,4 @@
-// Copyright 2007, 2009, 2010 The Apache Software Foundation
+// Copyright 2007, 2009, 2010, 2011 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.
@@ -14,14 +14,15 @@
package org.apache.tapestry5.annotations;
+import org.apache.tapestry5.ioc.annotations.UseWith;
+
import java.lang.annotation.Documented;
-import static java.lang.annotation.ElementType.METHOD;
import java.lang.annotation.Retention;
-import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
import static org.apache.tapestry5.ioc.annotations.AnnotationUseContext.*;
-import org.apache.tapestry5.ioc.annotations.UseWith;
/**
* Method annotation used for methods that should be invoked when the page is first attached to a request. This is
@@ -35,11 +36,12 @@ import org.apache.tapestry5.ioc.annotati
* the page pool.
*
* @see PageDetached
+ * @deprecated In Tapestry 5.3, with no replacement (attach logic no longer meaningful now that pages are singletons).
*/
@Target(METHOD)
@Retention(RUNTIME)
@Documented
-@UseWith({COMPONENT,MIXIN,PAGE})
+@UseWith({COMPONENT, MIXIN, PAGE})
public @interface PageAttached
{
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/runtime/PageLifecycleListener.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/runtime/PageLifecycleListener.java?rev=1150279&r1=1150278&r2=1150279&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/runtime/PageLifecycleListener.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/runtime/PageLifecycleListener.java Sun Jul 24 04:03:17 2011
@@ -36,6 +36,8 @@ public interface PageLifecycleListener
/**
* Invoked when a page is first attached to the current request, giving components a chance to initialize for the
* current request.
+ *
+ * @deprecated In Tapestry 5.3, with no replacement (attach logic no longer meaningful now that pages are singletons).
*/
void containingPageDidAttach();