Package org.springframework.core.io

Examples of org.springframework.core.io.InputStreamResource


    /**
     * Create a MylibReader for the specified InputStream.
     * @param stream the input stream
     */
    public MylibReader(InputStream stream) {
        super(new InputStreamResource(stream));
        configureFactory();
    }
View Full Code Here


    /**
     * Create a OrderModelReader for the specified InputStream.
     * @param stream the input stream
     */
    public OrderModelReader(InputStream stream) {
        super(new InputStreamResource(stream));
        configureFactory();
    }
View Full Code Here

       
        if (is != null) {
            childCtx = new GenericApplicationContext(ctx);
            XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(childCtx);
            reader.setValidationMode(XmlBeanDefinitionReader.VALIDATION_XSD);
            reader.loadBeanDefinitions(new InputStreamResource(is, location));
           
            childCtx.refresh();
        }
    }
View Full Code Here

            LOG.log(Level.INFO, "BUILD_ENDPOINTS_FROM_CONFIG_LOCATION", new Object[]{location});
            childCtx = new GenericApplicationContext(ctx);
           
            XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(childCtx);
            reader.setValidationMode(XmlBeanDefinitionReader.VALIDATION_XSD);
            reader.loadBeanDefinitions(new InputStreamResource(is, location));
           
            childCtx.refresh();
        }
    }
View Full Code Here

    /**
     * Create a CompanyModelReader for the specified InputStream.
     * @param stream the input stream
     */
    public CompanyModelReader(InputStream stream) {
        super(new InputStreamResource(stream));
        configureFactory();
    }
View Full Code Here

    /**
     * Create a MylibReader for the specified InputStream.
     * @param stream the input stream
     */
    public MylibReader(InputStream stream) {
        super(new InputStreamResource(stream));
        configureFactory();
    }
View Full Code Here

            LOG.log(Level.INFO, "BUILD_ENDPOINTS_FROM_CONFIG_LOCATION", new Object[]{location});
            childCtx = new GenericApplicationContext(ctx);
           
            XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(childCtx);
            reader.setValidationMode(XmlBeanDefinitionReader.VALIDATION_XSD);
            reader.loadBeanDefinitions(new InputStreamResource(is, location));
           
            childCtx.refresh();
        }
    }
View Full Code Here

            throw new RuntimeException(
                    "Can't locate resource descriptor in the ClassLoader: "
                            + TEST_RESOURCES_DESCRIPTOR);
        }

        BeanFactory factory = new XmlBeanFactory(new InputStreamResource(in));
        CayenneResources resources = (CayenneResources) factory.getBean(
                "TestResources",
                CayenneResources.class);

        resources.setConnectionKey(System.getProperty(CONNECTION_NAME_KEY));
View Full Code Here

        if (factory == null) {
            InputStream in = Thread
                    .currentThread()
                    .getContextClassLoader()
                    .getResourceAsStream(location);
            this.factory = new XmlBeanFactory(new InputStreamResource(in));
        }
        return factory;
    }
View Full Code Here

            if (in == null) {
                return null;
            }

            factory = new XmlBeanFactory(new InputStreamResource(in));
            dataSets.put(testCase, factory);
        }

        return factory;
    }
View Full Code Here

TOP

Related Classes of org.springframework.core.io.InputStreamResource

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.