[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Why SingletonSchemaResolverFactory?

alesj do-not-reply at jboss.com
Wed Jan 17 01:06:03 EST 2007


 I used this 'hack' to temp add new Spring schema:

  |    public void setUp() throws Exception
  |    {
  |       SchemaBindingResolver resolver = SingletonSchemaResolverFactory.getInstance().getSchemaBindingResolver();
  |       DefaultSchemaResolver defaultSchemaResolver = (DefaultSchemaResolver) resolver;
  |       defaultSchemaResolver.addSchemaInitializer("urn:jboss:spring-beans:2.0", new SpringSchemaInitializer());
  |       defaultSchemaResolver.addSchemaLocation("urn:jboss:spring-beans:2.0", "mc-spring-beans_2_0.xsd");
  |       super.setUp();
  |    }
  | 

But I agree with you.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002601#4002601

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002601



More information about the jboss-dev-forums mailing list