You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ml...@apache.org on 2013/08/03 14:08:52 UTC
[05/10] git commit: TAP5-2070 publish new method to let other code
check for activation context handling
TAP5-2070 publish new method to let other code check for activation context handling
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/3054fd6e
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/3054fd6e
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/3054fd6e
Branch: refs/heads/master
Commit: 3054fd6ee8ec8c3e8936838c5512780c84ea8598
Parents: 8640a40
Author: Massimo Lusetti <ml...@apache.org>
Authored: Sat Aug 3 14:03:16 2013 +0200
Committer: Massimo Lusetti <ml...@apache.org>
Committed: Sat Aug 3 14:03:16 2013 +0200
----------------------------------------------------------------------
54_RELEASE_NOTES.txt | 5 +++++
.../org/apache/tapestry5/model/ComponentModel.java | 11 +++++++++++
.../apache/tapestry5/model/MutableComponentModel.java | 13 +++++++++++++
3 files changed, 29 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/3054fd6e/54_RELEASE_NOTES.txt
----------------------------------------------------------------------
diff --git a/54_RELEASE_NOTES.txt b/54_RELEASE_NOTES.txt
index 6255469..fe4298c 100644
--- a/54_RELEASE_NOTES.txt
+++ b/54_RELEASE_NOTES.txt
@@ -257,6 +257,11 @@ It has been moved to package org.apache.tapestry5; this represents a minor incom
StreamableResource has been modified, adding a new `getChecksum()` method; this interface is rarely, if ever,
used or implemented by application code.
+## MutableComponentModel Extended
+
+MutableComponentModel has been modified, adding a new ` doHandleActivationEventContext()' method to help check
+activation context exactness; this interface is rarely, if ever, used or implemented by application code
+
## Module classes moved to new modules
Traditionally, Tapestry IoC Module classes have lived in the same package as the service interfaces they define, and
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/3054fd6e/tapestry-core/src/main/java/org/apache/tapestry5/model/ComponentModel.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/model/ComponentModel.java b/tapestry-core/src/main/java/org/apache/tapestry5/model/ComponentModel.java
index 04d5d3d..f19c018 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/model/ComponentModel.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/model/ComponentModel.java
@@ -211,4 +211,15 @@ public interface ComponentModel
* @since 5.2.0
*/
String[] getOrderForMixin(String mixinClassName);
+
+ /**
+ * Relevant for pages only, indicates that the component handle the {@link org.apache.tapestry5.EventConstants.ACTIVATE}
+ * events with a catch all rules
+ *
+ * @since 5.4
+ * @see {@link MutableComponentModel.doHandleActivationEventContext()}
+ * @return <code>true</code> in case the page implement a catch all rules for the activate event context,
+ * <code>false</code> otherwise
+ */
+ boolean handleActivationEventContext();
}
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/3054fd6e/tapestry-core/src/main/java/org/apache/tapestry5/model/MutableComponentModel.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/model/MutableComponentModel.java b/tapestry-core/src/main/java/org/apache/tapestry5/model/MutableComponentModel.java
index 227eec9..c7f0477 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/model/MutableComponentModel.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/model/MutableComponentModel.java
@@ -120,4 +120,17 @@ public interface MutableComponentModel extends ComponentModel
* @since 5.1.0.0
*/
void addEventHandler(String eventType);
+
+ /**
+ * Relevant for pages only, identifies that the component handle {@link org.apache.tapestry5.EventConstants.ACTIVATE}
+ * events supporting one of the three special case for catch all rules:
+ * <ul>
+ * <li><code>{@link java.lang.Object}[]</code></li>
+ * <li><code>{@link java.util.List}</code></li>
+ * <li><code>{@link org.apache.tapestry5.EventContext}</code></li>
+ * </ul>
+ *
+ * @since 5.4
+ */
+ void doHandleActivationEventContext();
}