Examples of ErraiServiceConfiguratorImpl


Examples of org.jboss.errai.bus.server.service.ErraiServiceConfiguratorImpl

        return null;
    }

    private static void createRPCScaffolding(final Class remoteIface, final Class<?> type, final BootstrapContext context) {

        final ErraiServiceConfiguratorImpl config = (ErraiServiceConfiguratorImpl) context.getConfig();
        final Injector injector = Guice.createInjector(new AbstractModule() {
            @Override
            protected void configure() {
                bind(MessageBus.class).toInstance(context.getBus());
                bind(RequestDispatcher.class).toInstance(context.getService().getDispatcher());

                // Add any extension bindings.
                for (Map.Entry<Class<?>, ResourceProvider> entry : config.getExtensionBindings().entrySet()) {
                    bind(entry.getKey()).toProvider(new GuiceProviderProxy(entry.getValue()));
                }
            }
        });
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.