Package org.apache.tiles.preparer

Examples of org.apache.tiles.preparer.PreparerException


        preparer = this.sharedPreparers.get(name);
        if (preparer == null) {
          try {
            Class<?> beanClass = context.getClassLoader().loadClass(name);
            if (!ViewPreparer.class.isAssignableFrom(beanClass)) {
              throw new PreparerException(
                  "Invalid preparer class [" + name + "]: does not implement ViewPreparer interface");
            }
            preparer = (ViewPreparer) context.getAutowireCapableBeanFactory().createBean(beanClass);
            this.sharedPreparers.put(name, preparer);
          }
View Full Code Here


            AttributeContext attributeContext) {

        try {
            tilesContext.include(url);
        } catch (IOException e) {
            throw new PreparerException("The inclusion of the URL " + url
                    + " threw an I/O exception", e);
        }
    }
View Full Code Here

        if (tilesContext instanceof DispatchRequest) {
            try {
                ((DispatchRequest) tilesContext).include(url);
            } catch (IOException e) {
                throw new PreparerException("The inclusion of the URL " + url
                        + " threw an I/O exception", e);
            }
        } else {
            throw new PreparerException("This preparer is restricted to web environments");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.tiles.preparer.PreparerException

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.