From e868210ca0b3c8a6b11f382ea0e403b4f85451df Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Wed, 26 Dec 2007 21:02:43 +0000 Subject: [PATCH] Allow read-only access to operating set of instances to extensions git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@606946 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/openjpa/kernel/BrokerImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java index a070cc37a..2cf9b8915 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java @@ -323,6 +323,13 @@ public class BrokerImpl private void initializeOperatingSet() { _operating = MapBackedSet.decorate(new IdentityMap()); } + + /** + * Gets the unmodifiable set of instances being operated. + */ + protected Set getOperatingSet() { + return Collections.unmodifiableSet(_operating); + } public Object clone() throws CloneNotSupportedException {