Archived

This forum has been archived. Please start a new discussion on GitHub.

query for interface

Hi,
I'd like to get any objects registered with an IcePack registry obeying a common base interface. So for example:

interface Base {}
interface Derived extends Base {}

..

query->findAllObjectsWithInterface("Base") -> Base, Derived

Is there a way to achieve this?

Thanks,
Arrigo

Comments

  • benoit
    benoit Rennes, France
    You would have to register your object with the "Base" interface instead of the "Derived" interface. Note that it's currently only possible to register one type with an object so if you register it with the "Base" interface, you won't be able to query objects with the "Derived" interface. Improving this is on our TODO list!

    Benoit.