Package rocket.beans.rebind

Examples of rocket.beans.rebind.BeanFactoryGeneratorException


      this.setFilename(fileName);
      this.processDocument();

    } catch (final ParserConfigurationException caught) {
      throw new BeanFactoryGeneratorException(caught.getMessage() + " whilst preparing to read the file \"" + fileName + "\".",
          caught);
    }
  }
View Full Code Here


   */
  protected void processDocument() {
    try {
      this.processDocument0();
    } catch (final SAXParseException caught) {
      throw new BeanFactoryGeneratorException(caught.getMessage() + " whilst parsing the xml file \"" + this.getFilename()
          + "\" at line: " + caught.getLineNumber() + ", column: " + caught.getColumnNumber(), caught);
    } catch (final SAXException caught) {
      throw new BeanFactoryGeneratorException(
          caught.getMessage() + " whilst parsing the xml file \"" + this.getFilename() + "\".", caught);
    } catch (final IOException caught) {
      throw new BeanFactoryGeneratorException(caught.getMessage() + " whilst reading the file \"" + this.getFilename() + "\".",
          caught);
    } catch (final RuntimeException caught) {
      throw caught;
    }
  }
View Full Code Here

   *
   * @param fileName
   *            The cycle file.
   */
  protected void throwIncludedFileCycle(final String fileName) {
    throw new BeanFactoryGeneratorException("The file \"" + fileName + "\" has previously been included causing a cycle.");
  }
View Full Code Here

      if (tagName.equals(Constants.IMAGE_TAG)) {
        value = this.visitImage(element);
        break;
      }

      throw new BeanFactoryGeneratorException("Unknown element \"" + tagName + "\".");
    }

    return value;
  }
View Full Code Here

    return bean;
  }

  protected void throwNestedBeansMustNotHaveIds(final Bean bean) {
    throw new BeanFactoryGeneratorException("Nested beans should not have an id set, bean: " + bean);
  }
View Full Code Here

    this.getAliases().add(alias);
  }

  protected void throwDuplicateAliasName(final Alias alias) {
    throw new BeanFactoryGeneratorException("The alias name is a duplicate of an existing bean/alias, " + alias);
  }
View Full Code Here

  protected void throwDuplicateAliasName(final Alias alias) {
    throw new BeanFactoryGeneratorException("The alias name is a duplicate of an existing bean/alias, " + alias);
  }

  protected void throwInvalidAliasBean(final Alias alias) {
    throw new BeanFactoryGeneratorException("The alias contains an invalid bean reference, alias: " + alias);
  }
View Full Code Here

      }
    };
  }

  protected void throwMethodExpressionException(final String expression) {
    throw new BeanFactoryGeneratorException(expression);
  }
View Full Code Here

TOP

Related Classes of rocket.beans.rebind.BeanFactoryGeneratorException

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.