1 Reply Latest reply on Jun 9, 2010 5:55 AM by alesj

    ServiceMix osgi/exposed-type

    thomas.diesler

      In ServiceMixTestCase.testExposedClasses()

       

      I see

       

      <osgi xmlns="urn:jboss:pojo2osgi:1.0" name="A">
        <exposed-type>org.jboss.test.osgi.service.support.a.AMBean</exposed-type>
      </osgi>

       

      How is this supposed to work and pls show me where this is documented.

        • 1. Re: ServiceMix osgi/exposed-type
          alesj
          How is this supposed to work and pls show me where this is documented.

          This is an XB extension to plain MC bean element, search for "urn:jboss:pojo2osgi" to find the actual metadata class.

           

          In MC's BeanMetaData we have a notion of related classes; e.g. used with AOP, BeanFactory, ...

          With OSGi we could simply reuse this related classes metadata to hold the explicit exposed types.

          See how CLASSES const is created for MC beans in that MDR factory -- it reuses this related classes info.

          So, instead of all that xml details, we can simply hide this behind <exposed-type> element.