Package org.restlet.ext.spring

Examples of org.restlet.ext.spring.SpringContext


    }

    public Restlet createRoot() {
        Router router = new Router();

        SpringContext springContext = new SpringContext(getContext());

        springContext.getXmlConfigRefs().add("war://WEB-INF/classes/applicationContext.xml");
        //       router.setRequiredScore(0);
        //       router.attach("/roles", new UserRestlet("Role Management Page"));
        router.attach("/user/{name}", new UserRestlet(null));
        router.attach("/dummy", new DummyRestlet(springContext));
View Full Code Here

TOP

Related Classes of org.restlet.ext.spring.SpringContext

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.