Package com.ponysdk.core.event

Examples of com.ponysdk.core.event.EventBus


        PPusher.initialize();

        final PSimpleLayoutPanel panel = new PSimpleLayoutPanel();
        PRootLayoutPanel.get().add(panel);

        final EventBus eventBus = UIContext.getRootEventBus();

        final SampleActivityMapper mapper = new SampleActivityMapper();
        final PlaceHistoryMapper historyMapper = new DefaultPlaceHistoryMapper(eventBus);
        final PlaceController placeController = new PlaceController(uiContext.getHistory(), eventBus);
View Full Code Here


        if (clientConfigurations.isEmpty()) configurations.addAll(Arrays.asList("conf/client_application.inc.xml", "client_application.xml"));
        else configurations.addAll(clientConfigurations);

        final ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(configurations.toArray(new String[0]));

        final EventBus rootEventBus = applicationContext.getBean(EventBus.class);
        final EntryPoint entryPoint = applicationContext.getBean(EntryPoint.class);
        final PHistory history = applicationContext.getBean(PHistory.class);

        ponySession.setRootEventBus(rootEventBus);
        ponySession.setHistory(history);
View Full Code Here

                    throw new ServletException("Unable to load the entry point #" + entryPointClassName + " from the classpath.", e);
                } catch (final Exception e) {
                    throw new ServletException("Failed to instantiate the entry point #" + entryPointClassName, e);
                }

                final EventBus rootEventBus = new SimpleEventBus();

                final PHistory history = new PHistory();

                ponySession.setRootEventBus(rootEventBus);
                ponySession.setHistory(history);
View Full Code Here

TOP

Related Classes of com.ponysdk.core.event.EventBus

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.