Author: jm
Date: 2012-01-18 07:31:39 -0800 (Wed, 18 Jan 2012)
New Revision: 28039
Modified:
core3/api/trunk/service-api/src/main/java/org/cytoscape/service/util/internal/CyServiceRegistrarImpl.java
Log:
Fixed bug in CyServiceRegistrarImpl which prevents all services for an object
from being unregistered because super interfaces and classes aren't being
considered
Modified:
core3/api/trunk/service-api/src/main/java/org/cytoscape/service/util/internal/CyServiceRegistrarImpl.java
===================================================================
---
core3/api/trunk/service-api/src/main/java/org/cytoscape/service/util/internal/CyServiceRegistrarImpl.java
2012-01-18 01:24:00 UTC (rev 28038)
+++
core3/api/trunk/service-api/src/main/java/org/cytoscape/service/util/internal/CyServiceRegistrarImpl.java
2012-01-18 15:31:39 UTC (rev 28039)
@@ -54,8 +54,11 @@
public void unregisterAllServices(Object o) {
- for ( Class<?> c : o.getClass().getInterfaces() )
- unregisterService(o,c);
+ for ( Class c : RegisterUtil.getAllInterfaces(o.getClass()) ) {
+ if ( !c.getName().startsWith("java") ) {
+ unregisterService(o,c);
+ }
+ }
}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.