Package org.apache.tiles

Examples of org.apache.tiles.TilesException


        try {
            Class<?> contextClass = context.getClass();
            Method attrMethod = contextClass.getMethod("removeAttribute", String.class);
            attrMethod.invoke(context, name);
        } catch (Exception e) {
            throw new TilesException("Unable to remove attribute for specified context: '" + context + "'");
        }
    }
View Full Code Here


            return namedClass.newInstance();
        } catch (ClassNotFoundException e) {
            if (returnNull) {
                return null;
            }
            throw new TilesException("Unable to resolve factory class: '" + className + "'");
        } catch (IllegalAccessException e) {
            throw new TilesException("Unable to access factory class: '" + className + "'");
        } catch (InstantiationException e) {
            throw new TilesException("Unable to instantiate factory class: '"
                + className + "'. Make sure that this class has a default constructor");
        } finally {
            Thread.currentThread().setContextClassLoader(original);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.tiles.TilesException

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.