Package org.springframework.web.portlet.context

Examples of org.springframework.web.portlet.context.StaticPortletApplicationContext.registerSingleton()


      @Override
      protected ApplicationContext createPortletApplicationContext(ApplicationContext parent) throws BeansException {
        StaticPortletApplicationContext wac = new StaticPortletApplicationContext();
        // The order of handler registration is important to get
        // the collection with [Render,Action,Render] predicates
        wac.registerSingleton("firstController", FirstController.class);
        wac.registerSingleton("secondController", SecondController.class);
        wac.registerSingleton("thirdController", ThirdController.class);
        wac.registerSingleton("handlerMapping", DefaultAnnotationHandlerMapping.class);
        wac.registerSingleton("handlerAdapter", AnnotationMethodHandlerAdapter.class);
        wac.setPortletContext(new MockPortletContext());
View Full Code Here


      protected ApplicationContext createPortletApplicationContext(ApplicationContext parent) throws BeansException {
        StaticPortletApplicationContext wac = new StaticPortletApplicationContext();
        // The order of handler registration is important to get
        // the collection with [Render,Action,Render] predicates
        wac.registerSingleton("firstController", FirstController.class);
        wac.registerSingleton("secondController", SecondController.class);
        wac.registerSingleton("thirdController", ThirdController.class);
        wac.registerSingleton("handlerMapping", DefaultAnnotationHandlerMapping.class);
        wac.registerSingleton("handlerAdapter", AnnotationMethodHandlerAdapter.class);
        wac.setPortletContext(new MockPortletContext());
        AnnotationConfigUtils.registerAnnotationConfigProcessors(wac);
View Full Code Here

        StaticPortletApplicationContext wac = new StaticPortletApplicationContext();
        // The order of handler registration is important to get
        // the collection with [Render,Action,Render] predicates
        wac.registerSingleton("firstController", FirstController.class);
        wac.registerSingleton("secondController", SecondController.class);
        wac.registerSingleton("thirdController", ThirdController.class);
        wac.registerSingleton("handlerMapping", DefaultAnnotationHandlerMapping.class);
        wac.registerSingleton("handlerAdapter", AnnotationMethodHandlerAdapter.class);
        wac.setPortletContext(new MockPortletContext());
        AnnotationConfigUtils.registerAnnotationConfigProcessors(wac);
        wac.refresh();
View Full Code Here

        // The order of handler registration is important to get
        // the collection with [Render,Action,Render] predicates
        wac.registerSingleton("firstController", FirstController.class);
        wac.registerSingleton("secondController", SecondController.class);
        wac.registerSingleton("thirdController", ThirdController.class);
        wac.registerSingleton("handlerMapping", DefaultAnnotationHandlerMapping.class);
        wac.registerSingleton("handlerAdapter", AnnotationMethodHandlerAdapter.class);
        wac.setPortletContext(new MockPortletContext());
        AnnotationConfigUtils.registerAnnotationConfigProcessors(wac);
        wac.refresh();
        return wac;
View Full Code Here

        // the collection with [Render,Action,Render] predicates
        wac.registerSingleton("firstController", FirstController.class);
        wac.registerSingleton("secondController", SecondController.class);
        wac.registerSingleton("thirdController", ThirdController.class);
        wac.registerSingleton("handlerMapping", DefaultAnnotationHandlerMapping.class);
        wac.registerSingleton("handlerAdapter", AnnotationMethodHandlerAdapter.class);
        wac.setPortletContext(new MockPortletContext());
        AnnotationConfigUtils.registerAnnotationConfigProcessors(wac);
        wac.refresh();
        return wac;
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.