openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r606946 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
Date Wed, 26 Dec 2007 21:02:44 GMT
Author: ppoddar
Date: Wed Dec 26 13:02:43 2007
New Revision: 606946

URL: http://svn.apache.org/viewvc?rev=606946&view=rev
Log:
Allow read-only access to operating set of instances to extensions

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java?rev=606946&r1=606945&r2=606946&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java (original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java Wed
Dec 26 13:02:43 2007
@@ -323,6 +323,13 @@
     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 {



Mime
View raw message