[jboss-jira] [JBoss JIRA] Closed: (JBMICROCONT-261) Update aop-mc-int schema to use jboss-beans-common_2_0.xsd

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Thu Apr 3 07:20:29 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBMICROCONT-261?page=all ]

Alexey Loubyansky closed JBMICROCONT-261.
-----------------------------------------

    Resolution: Done

I can say that it's valid in a sense that it can be parsed w/o errors. If you want to make sure it is always valid then I suggest you to add a test. E.g.

      InputStream aopbeans = Thread.currentThread().getContextClassLoader().getResourceAsStream("aop-beans_1_0.xsd");
      assertNotNull(aopbeans);
      org.jboss.xb.binding.Util.loadSchema(aopbeans, null, new SchemaBindingResolver()
      {
         public String getBaseURI()
         {
            return null;
         }

         public SchemaBinding resolve(String nsUri, String baseURI, String schemaLocation)
         {
            return null;
         }

         public LSInput resolveAsLSInput(String nsUri, String baseUri, String schemaLocation)
         {
            InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(schemaLocation);
            assertNotNull(stream);
            return new org.jboss.xb.binding.sunday.unmarshalling.LSInputAdaptor(stream, null);
         }

         public void setBaseURI(String baseURI)
         {
         }
      });

> Update aop-mc-int schema to use jboss-beans-common_2_0.xsd
> ----------------------------------------------------------
>
>                 Key: JBMICROCONT-261
>                 URL: http://jira.jboss.com/jira/browse/JBMICROCONT-261
>             Project: JBoss MicroContainer
>          Issue Type: Feature Request
>            Reporter: Kabir Khan
>         Assigned To: Alexey Loubyansky
>             Fix For: JBossMC.2.0.0.CR1
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list