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 2012/07/06 02:38:01 UTC
[15/16] git commit: Remove usage of deprecated APIs - convert
InvalidationHub.addInvalidationListener() to addInvalidationCallback()
Remove usage of deprecated APIs
- convert InvalidationHub.addInvalidationListener() to addInvalidationCallback()
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/937961ff
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/937961ff
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/937961ff
Branch: refs/heads/5.4-js-rewrite
Commit: 937961ff61d9cd0d96e4678b1462d71132f716d8
Parents: 31034c7
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Thu Jul 5 10:01:22 2012 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Thu Jul 5 10:01:22 2012 -0700
----------------------------------------------------------------------
.../apache/tapestry5/services/TapestryModule.java | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/937961ff/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java b/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
index c9d0d08..dd300ec 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/services/TapestryModule.java
@@ -2222,9 +2222,9 @@ public final class TapestryModule
final InvalidationEventHub invalidationEventHub, final @Autobuild
RestoreDirtySessionObjects restoreDirtySessionObjects)
{
- final InvalidationListener listener = new InvalidationListener()
+ final Runnable callback = new Runnable()
{
- public void objectWasInvalidated()
+ public void run()
{
propertyAccess.clearCache();
@@ -2240,7 +2240,7 @@ public final class TapestryModule
// service's cache whenever
// the component class loader is invalidated.
- invalidationEventHub.addInvalidationListener(listener);
+ invalidationEventHub.addInvalidationCallback(callback);
endOfRequestEventHub.addEndOfRequestListener(restoreDirtySessionObjects);
@@ -2722,10 +2722,9 @@ public final class TapestryModule
@Startup
public static void registerToClearPlasticProxyFactoryOnInvalidation(@ComponentClasses InvalidationEventHub hub, @Builtin final PlasticProxyFactory proxyFactory)
{
- hub.addInvalidationListener(new InvalidationListener()
+ hub.addInvalidationCallback(new Runnable()
{
- @Override
- public void objectWasInvalidated()
+ public void run()
{
proxyFactory.clearCache();
}