1 Reply Latest reply on Jun 23, 2010 8:24 AM by thomas.diesler

    OSGiSingletonSchemaResolverFactory and Pojo2OSGiSchema

    bosschaert

      I noticed that there is a special Pojo2OSGiSchema which only really gets registered in the jboss-osgi-bootstrap.xml that is used for testing:

       

      {code:xml}  <bean name="OSGiSingletonSchemaResolverFactory">
          <constructor factoryClass="org.jboss.xb.binding.sunday.unmarshalling.SingletonSchemaResolverFactory" factoryMethod="getInstance" />
        </bean>
        <bean name="Pojo2OSGiSchema">
          <constructor factoryMethod="getSchemaBindingResolver"><factory bean="OSGiSingletonSchemaResolverFactory" /></constructor>
          <install method="mapURIToClass">
            <parameter>urn:jboss:pojo2osgi:1.0</parameter>
            <parameter>org.jboss.osgi.framework.metadata.internal.OSGiPojoMetaData</parameter>
          </install>
          <uninstall method="removeURIToClassMapping">
            <parameter>urn:jboss:pojo2osgi:1.0</parameter>
          </uninstall>
        </bean>{code}

       

      With my new start level schema I need to get access to the OSGiSingletonSchemaResolverFactory in jboss-osgi-bootstrap-system.xml so I would like to at least move that factory in there. Should I move the Pojo2OSGiSchema into jboss-osgi-bootstrap-system.xml as well?