[jboss-dev-forums] [JBoss OSGi Development] - Re: Cannot resolve circular dependencies

adrian@jboss.org do-not-reply at jboss.com
Mon Sep 14 13:31:29 EDT 2009


This is very broken. You can't change the Capability interface in a stable release.
Its part of the public spi.

If you want a new method, then you should add a mixin interface, e.g. 

public interface Capability2 extends Capability { ... }

and then have AbstractCapability implement it by invoking the old method 
calling code should do:


  | if (capability instanceof Capability2)
  |    ((Capability2) capability).resolve(x, y, z);
  | else
  |    capability.resolve(x, z);
  | 


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255163#4255163

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255163



More information about the jboss-dev-forums mailing list