1 Reply Latest reply on Jun 14, 2012 6:28 AM by Michael Anstis

    IOCBeanManager.lookupBeans(IMyInterface.class) no longer returns classes in a different JAR\project

    Michael Anstis Newbie

      Hi,

       

      Before yesterday we used the captioned to return a list of managed classes implementing the given interface where such classes exist in a different JAR\project to that making the call, e.g.:-

       

      Project1


      class MyClass {

         Collection<IOCBeanDef> beans = manager.lookupBeans(IMyInterface.class);

      }

       

      interface IMyInterface {

      ...

      }

       

      Project2

       

      class MyInterfaceImpl implements IMyInterface {

      ...

      }

       

      Today I find this no longer works - only if the implementation is in the same JAR\project scope as that making the call, e.g.:-

       

      Project1


      class MyClass {

         Collection<IOCBeanDef> beans = manager.lookupBeans(IMyInterface.class);

      }

       

      interface IMyInterface {

      ...

      }

       

      class MyInterfaceImpl implements IMyInterface {

      ...

      }

       

      This functionality is absolutely critical to our project.

       

      Is the change in behaviour by accident or design? Please, please, please be by accident.

       

      I've asked colleagues to verify incase it's a local problem.

       

      Thanks,

       

      Mike