Search in sources :

Example 1 with URIResolver

use of com.vaadin.client.URIResolver 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)1 CustomScheduler (com.vaadin.client.CustomScheduler)1 Registry (com.vaadin.client.Registry)1 UILifecycle (com.vaadin.client.UILifecycle)1 URIResolver (com.vaadin.client.URIResolver)1 ConstantPool (com.vaadin.client.flow.ConstantPool)1 StateTree (com.vaadin.client.flow.StateTree)1