Package org.xeustechnologies.jcl.context

Examples of org.xeustechnologies.jcl.context.XmlContextLoader


                .getClassLoader().getClass().getName() );
    }

    @Test
    public void testXmlContextLoader() throws ClassNotFoundException {
        XmlContextLoader cl = new XmlContextLoader( "classpath:jcl.xml" );
        cl.loadContext();

        JclContext.get( "jcl1" ).loadClass( "org.xeustechnologies.jcl.test.Test" );

        try {
            JclContext.get( "jcl2" ).loadClass( "org.xeustechnologies.jcl.test.Test" );
View Full Code Here


     * @see javax.servlet.ServletContextListener#contextInitialized(javax.servlet.ServletContextEvent)
     */
    public void contextInitialized(ServletContextEvent sce) {
        String jclConfig = sce.getServletContext().getInitParameter( JCL_CONTEXT );

        contextLoader = new XmlContextLoader( jclConfig );
        contextLoader.addPathResolver( new WebAppPathResolver( sce.getServletContext() ) );
        contextLoader.loadContext();
    }
View Full Code Here

TOP

Related Classes of org.xeustechnologies.jcl.context.XmlContextLoader

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.