Package org.springframework.beans.factory.xml

Examples of org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver


    new DefaultNamespaceHandlerResolver(null);
  }

  @Test(expected=IllegalArgumentException.class)
  public void testCtorWithNullClassLoaderArgumentAndNullMappingLocationArgument() throws Exception {
    new DefaultNamespaceHandlerResolver(null, null);
  }
View Full Code Here


  }

  @Test
  public void testCtorWithNonExistentMappingLocationArgument() throws Exception {
    // simply must not bail; we don't want non-existent resources to result in an Exception
    new DefaultNamespaceHandlerResolver(null, "738trbc bobabloobop871");
  }
View Full Code Here

  private GenericApplicationContext beanFactory;

  @Before
  public void setUp() throws Exception {
    NamespaceHandlerResolver resolver = new DefaultNamespaceHandlerResolver(CLASS.getClassLoader(), NS_PROPS);
    this.beanFactory = new GenericApplicationContext();
    XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(this.beanFactory);
    reader.setNamespaceHandlerResolver(resolver);
    reader.setValidationMode(XmlBeanDefinitionReader.VALIDATION_XSD);
    reader.setEntityResolver(new DummySchemaResolver());
View Full Code Here

    protected void initBeanDefinitionReader(XmlBeanDefinitionReader reader) {
        // Spring always creates a new one of these, which takes a fair amount
        // of time on startup (nearly 1/2 second) as it gets created for every
        // spring context on the classpath
        if (nsHandlerResolver == null) {
            nsHandlerResolver = new DefaultNamespaceHandlerResolver();
        }
        reader.setNamespaceHandlerResolver(nsHandlerResolver);
       
        String mode = System.getProperty("spring.validation.mode");
        if (null != mode) {
View Full Code Here

    protected void initBeanDefinitionReader(XmlBeanDefinitionReader reader) {
        // Spring always creates a new one of these, which takes a fair amount
        // of time on startup (nearly 1/2 second) as it gets created for every
        // spring context on the classpath
        if (nsHandlerResolver == null) {
            nsHandlerResolver = new DefaultNamespaceHandlerResolver();
        }
        reader.setNamespaceHandlerResolver(nsHandlerResolver);
       
        String mode = System.getProperty("spring.validation.mode");
        if (null != mode) {
View Full Code Here

    protected void initBeanDefinitionReader(XmlBeanDefinitionReader reader) {
        // Spring always creates a new one of these, which takes a fair amount
        // of time on startup (nearly 1/2 second) as it gets created for every
        // spring context on the classpath
        if (nsHandlerResolver == null) {
            nsHandlerResolver = new DefaultNamespaceHandlerResolver();
        }
        reader.setNamespaceHandlerResolver(nsHandlerResolver);
       
        String mode = System.getProperty("org.apache.cxf.spring.validation.mode");
        if (mode == null) {
View Full Code Here

        assertThat(nh, instanceOf(ContextNamespaceHandler.class));
    }

    private void createConfigurationPoints(String location) {
        cps = new ConfigurationPointsImpl((ClassLoader) null, location);
        resolver = new ConfigurationPointNamespaceHandlerResolver(cps, new DefaultNamespaceHandlerResolver());
    }
View Full Code Here

        assertThat(nh, instanceOf(ContextNamespaceHandler.class));
    }

    private void createConfigurationPoints(String location) {
        cps = new ConfigurationPointsImpl(null, location);
        resolver = new ConfigurationPointNamespaceHandlerResolver(cps, new DefaultNamespaceHandlerResolver());
    }
View Full Code Here

        ConfigurationPointsImpl cps = new ConfigurationPointsImpl(classLoader);
        SpringPluggableSchemas sps = new SpringPluggableSchemas(resourceLoader);

        // default resolvers
        EntityResolver defaultEntityResolver = new ResourceEntityResolver(resourceLoader);
        NamespaceHandlerResolver defaultNamespaceHanderResolver = new DefaultNamespaceHandlerResolver(classLoader);

        // new resolvers
        EntityResolver entityResolver = new SchemaEntityResolver(defaultEntityResolver, cps, sps);
        NamespaceHandlerResolver namespaceHandlerResolver = new ConfigurationPointNamespaceHandlerResolver(cps,
                                                                                                           defaultNamespaceHanderResolver);
View Full Code Here

        // schema providers
        SpringExtSchemaSet schemas = new SpringExtSchemaSet(classLoader);

        // default resolvers
        EntityResolver defaultEntityResolver = new ResourceEntityResolver(resourceLoader);
        NamespaceHandlerResolver defaultNamespaceHandlerResolver = new DefaultNamespaceHandlerResolver(classLoader);

        // new resolvers
        EntityResolver entityResolver = new SchemaEntityResolver(defaultEntityResolver, schemas);
        NamespaceHandlerResolver namespaceHandlerResolver = new ConfigurationPointNamespaceHandlerResolver(schemas.getConfigurationPoints(), defaultNamespaceHandlerResolver);
View Full Code Here

TOP

Related Classes of org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.