Examples of DescriptiveResource


Examples of org.springframework.core.io.DescriptiveResource

   * @param beanName name of the {@code @Configuration} class bean
   * @since 3.1.1
   */
  public ConfigurationClass(Class<?> clazz, boolean imported) {
    this.metadata = new StandardAnnotationMetadata(clazz, true);
    this.resource = new DescriptiveResource(clazz.toString());
    this.imported = imported;
  }
View Full Code Here

Examples of org.springframework.core.io.DescriptiveResource

   * @throws BeanDefinitionStoreException in case of loading or parsing errors
   */
  public int loadBeanDefinitions(InputSource inputSource, String resourceDescription)
      throws BeanDefinitionStoreException {

    return doLoadBeanDefinitions(inputSource, new DescriptiveResource(resourceDescription));
  }
View Full Code Here

Examples of org.springframework.core.io.DescriptiveResource

   * @throws BeanDefinitionStoreException in case of loading or parsing errors
   */
  public int loadBeanDefinitions(InputSource inputSource, String resourceDescription)
      throws BeanDefinitionStoreException {

    return doLoadBeanDefinitions(inputSource, new DescriptiveResource(resourceDescription));
  }
View Full Code Here

Examples of org.springframework.core.io.DescriptiveResource

    VelocityConfigurer vc = new VelocityConfigurer();
    vc.setResourceLoaderPath("file:/mydir,file:/yourdir");
    vc.setResourceLoader(new ResourceLoader() {
      public Resource getResource(String location) {
        if ("file:/yourdir/test".equals(location)) {
          return new DescriptiveResource("");
        }
        return new ByteArrayResource("test".getBytes(), "test");
      }
      public ClassLoader getClassLoader() {
        return getClass().getClassLoader();
View Full Code Here

Examples of org.springframework.core.io.DescriptiveResource

  /**
   * Set a description of the resource that this bean definition
   * came from (for the purpose of showing context in case of errors).
   */
  public void setResourceDescription(String resourceDescription) {
    this.resource = new DescriptiveResource(resourceDescription);
  }
View Full Code Here

Examples of org.springframework.core.io.DescriptiveResource

  /**
   * Set a description of the resource that this bean definition
   * came from (for the purpose of showing context in case of errors).
   */
  public void setResourceDescription(String resourceDescription) {
    this.resource = new DescriptiveResource(resourceDescription);
  }
View Full Code Here

Examples of org.springframework.core.io.DescriptiveResource

   * @throws BeanDefinitionStoreException in case of loading or parsing errors
   */
  public int loadBeanDefinitions(InputSource inputSource, String resourceDescription)
      throws BeanDefinitionStoreException {

    return doLoadBeanDefinitions(inputSource, new DescriptiveResource(resourceDescription));
  }
View Full Code Here

Examples of org.springframework.core.io.DescriptiveResource

  /**
   * Set a description of the resource that this bean definition
   * came from (for the purpose of showing context in case of errors).
   */
  public void setResourceDescription(String resourceDescription) {
    this.resource = new DescriptiveResource(resourceDescription);
  }
View Full Code Here

Examples of org.springframework.core.io.DescriptiveResource

   * @see ConfigurationClass#ConfigurationClass(Class, ConfigurationClass)
   */
  public ConfigurationClass(Class<?> clazz, String beanName) {
    Assert.hasText(beanName, "Bean name must not be null");
    this.metadata = new StandardAnnotationMetadata(clazz, true);
    this.resource = new DescriptiveResource(clazz.toString());
    this.beanName = beanName;
  }
View Full Code Here

Examples of org.springframework.core.io.DescriptiveResource

   * @param importedBy the configuration class importing this one or {@code null}
   * @since 3.1.1
   */
  public ConfigurationClass(Class<?> clazz, ConfigurationClass importedBy) {
    this.metadata = new StandardAnnotationMetadata(clazz, true);
    this.resource = new DescriptiveResource(clazz.toString());
    this.importedBy.add(importedBy);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.