patch that makes it possible to override refAllOfClass and refAllOfType functionality in Impl classes
1.1 --- a/mdr/src/org/netbeans/mdr/handlers/ClassProxyHandler.java Wed Oct 15 21:14:45 2003 +0000
1.2 +++ b/mdr/src/org/netbeans/mdr/handlers/ClassProxyHandler.java Wed Oct 15 22:32:14 2003 +0000
1.3 @@ -155,9 +155,7 @@
1.4 public final Collection refAllOfType() {
1.5 try {
1.6 _lock(false);
1.7 - return new IndexSetWrapper(_getMdrStorage(), getClassDelegate().allObjects(true));
1.8 - } catch (StorageException e) {
1.9 - throw (DebugException) Logger.getDefault().annotate(new DebugException(), e);
1.10 + return _allOfClass(true);
1.11 } finally {
1.12 _unlock();
1.13 }
1.14 @@ -166,11 +164,17 @@
1.15 public final Collection refAllOfClass() {
1.16 try {
1.17 _lock(false);
1.18 - return new IndexSetWrapper(_getMdrStorage(), getClassDelegate().allObjects(false));
1.19 + return _allOfClass(false);
1.20 + } finally {
1.21 + _unlock();
1.22 + }
1.23 + }
1.24 +
1.25 + protected Collection _allOfClass(boolean includeSubtypes) {
1.26 + try {
1.27 + return new IndexSetWrapper(_getMdrStorage(), getClassDelegate().allObjects(includeSubtypes));
1.28 } catch (StorageException e) {
1.29 throw (DebugException) Logger.getDefault().annotate(new DebugException(), e);
1.30 - } finally {
1.31 - _unlock();
1.32 }
1.33 }
1.34