Search in sources :

Example 6 with ApplicationConfiguration

use of com.vaadin.client.ApplicationConfiguration in project flow by vaadin.

the class GwtAtmoshperePushConnectionTest method gwtSetUp.

@Override
protected void gwtSetUp() throws Exception {
    super.gwtSetUp();
    initScheduler(new CustomScheduler());
    registry = new Registry() {

        {
            set(ConstantPool.class, new ConstantPool());
            set(StateTree.class, new StateTree(this));
            set(URIResolver.class, new URIResolver(this));
            set(UILifecycle.class, new UILifecycle());
            set(ApplicationConfiguration.class, new ApplicationConfiguration());
            set(MessageHandler.class, new MessageHandler(this));
            set(PushConfiguration.class, new PushConfiguration(this) {

                @Override
                public JsMap<String, String> getParameters() {
                    return JsCollections.map();
                }
            });
            set(ConnectionStateHandler.class, new DefaultConnectionStateHandler(this));
        }
    };
}
Also used : StateTree(com.vaadin.client.flow.StateTree) ConstantPool(com.vaadin.client.flow.ConstantPool) URIResolver(com.vaadin.client.URIResolver) CustomScheduler(com.vaadin.client.CustomScheduler) Registry(com.vaadin.client.Registry) UILifecycle(com.vaadin.client.UILifecycle) ApplicationConfiguration(com.vaadin.client.ApplicationConfiguration)

Aggregations

ApplicationConfiguration (com.vaadin.client.ApplicationConfiguration)6 Registry (com.vaadin.client.Registry)4 ApplicationConnection (com.vaadin.client.ApplicationConnection)1 CustomScheduler (com.vaadin.client.CustomScheduler)1 ExistingElementMap (com.vaadin.client.ExistingElementMap)1 SystemErrorHandler (com.vaadin.client.SystemErrorHandler)1 UILifecycle (com.vaadin.client.UILifecycle)1 URIResolver (com.vaadin.client.URIResolver)1 ValueMap (com.vaadin.client.ValueMap)1 ConstantPool (com.vaadin.client.flow.ConstantPool)1 StateTree (com.vaadin.client.flow.StateTree)1