You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2025/06/16 18:23:39 UTC
(causeway) branch v4 updated (af475ed72ab -> a4266e60024)
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a change to branch v4
in repository https://gitbox.apache.org/repos/asf/causeway.git
from af475ed72ab Merge remote-tracking branch 'origin/main' into v4
add 207c7a89281 CAUSEWAY-3883: flattens WrapperInvocationHandler hierarchy (refactor)
add f5ff1a4a207 CAUSEWAY-3883: converts PluralInvocationHandler to record (refactor)
new a4266e60024 Merge remote-tracking branch 'origin/main' into v4
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../runtimeservices/src/main/java/module-info.java | 2 +-
.../handlers/CollectionInvocationHandler.java | 45 -------------
.../handlers/DomainObjectInvocationHandler.java | 47 ++++++-------
.../wrapper/handlers/MapInvocationHandler.java | 44 -------------
...rAbstract.java => PluralInvocationHandler.java} | 77 ++++++++++++++--------
.../wrapper/handlers/ProxyGenerator.java | 20 +++---
6 files changed, 79 insertions(+), 156 deletions(-)
delete mode 100644 core/runtimeservices/src/main/java/org/apache/causeway/core/runtimeservices/wrapper/handlers/CollectionInvocationHandler.java
delete mode 100644 core/runtimeservices/src/main/java/org/apache/causeway/core/runtimeservices/wrapper/handlers/MapInvocationHandler.java
rename core/runtimeservices/src/main/java/org/apache/causeway/core/runtimeservices/wrapper/handlers/{PluralInvocationHandlerAbstract.java => PluralInvocationHandler.java} (51%)
(causeway) 01/01: Merge remote-tracking branch 'origin/main' into v4
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch v4
in repository https://gitbox.apache.org/repos/asf/causeway.git
commit a4266e60024b4fa0593755a3d1cf486b7481896b
Merge: af475ed72ab f5ff1a4a207
Author: Andi Huber <ah...@apache.org>
AuthorDate: Mon Jun 16 20:23:34 2025 +0200
Merge remote-tracking branch 'origin/main' into v4
.../runtimeservices/src/main/java/module-info.java | 2 +-
.../handlers/CollectionInvocationHandler.java | 45 -------------
.../handlers/DomainObjectInvocationHandler.java | 47 ++++++-------
.../wrapper/handlers/MapInvocationHandler.java | 44 -------------
...rAbstract.java => PluralInvocationHandler.java} | 77 ++++++++++++++--------
.../wrapper/handlers/ProxyGenerator.java | 20 +++---
6 files changed, 79 insertions(+), 156 deletions(-)
diff --cc core/runtimeservices/src/main/java/org/apache/causeway/core/runtimeservices/wrapper/handlers/DomainObjectInvocationHandler.java
index 8f098561cbc,3330f3b1aec..dd3139f588e
--- a/core/runtimeservices/src/main/java/org/apache/causeway/core/runtimeservices/wrapper/handlers/DomainObjectInvocationHandler.java
+++ b/core/runtimeservices/src/main/java/org/apache/causeway/core/runtimeservices/wrapper/handlers/DomainObjectInvocationHandler.java
@@@ -78,13 -76,13 +77,13 @@@ import lombok.experimental.Accessors
*
* @param <T> type of delegate
*/
-@Log4j2
+@Slf4j
- public class DomainObjectInvocationHandler<T>
+ public final class DomainObjectInvocationHandler<T>
implements WrapperInvocationHandler {
-- @Getter(onMethod_ = {@Override}) @Accessors(fluent=true)
++ @Getter(onMethod_ = {@Override}) @Accessors(fluent=true)
private final WrapperInvocationHandler.Context context;
--
++
private final ProxyGenerator proxyGenerator;
private final MetaModelContext mmc;
@@@ -117,7 -115,7 +116,7 @@@
final ManagedObject targetAdapter,
final SyncControl syncControl,
final ProxyGenerator proxyGenerator) {
--
++
this.mmc = targetAdapter.objSpec().getMetaModelContext();
this.context = WrapperInvocationHandler.Context.of(
mmc,
@@@ -130,10 -129,12 +130,12 @@@
} catch (final NoSuchMethodException e) {
// ignore
}
+ this.titleMethod = _titleMethod;
-
++
try {
- __causeway_saveMethod = WrappingObject.class.getMethod("__causeway_save", _Constants.emptyClasses);
- __causeway_wrappedMethod = WrappingObject.class.getMethod("__causeway_wrapped", _Constants.emptyClasses);
- __causeway_executionModes = WrappingObject.class.getMethod("__causeway_executionModes", _Constants.emptyClasses);
+ this.__causeway_saveMethod = WrappingObject.class.getMethod("__causeway_save", _Constants.emptyClasses);
+ this.__causeway_wrappedMethod = WrappingObject.class.getMethod("__causeway_wrapped", _Constants.emptyClasses);
+ this.__causeway_executionModes = WrappingObject.class.getMethod("__causeway_executionModes", _Constants.emptyClasses);
} catch (final NoSuchMethodException nsme) {
throw new IllegalStateException(