Search in sources :

Example 6 with CCWebSocketRuntimeModule

use of io.joynr.runtime.CCWebSocketRuntimeModule in project joynr by bmwcarit.

the class BroadcastEnd2EndTest method createClusterController.

private ClusterControllerRuntime createClusterController(Properties webSocketConfig) {
    Properties ccConfig = new Properties();
    ccConfig.putAll(webSocketConfig);
    ccConfig.setProperty(ConfigurableMessagingSettings.PROPERTY_CC_CONNECTION_TYPE, "WEBSOCKET");
    Injector injectorCC = new JoynrInjectorFactory(ccConfig, new CCWebSocketRuntimeModule()).getInjector();
    return (ClusterControllerRuntime) injectorCC.getInstance(JoynrRuntime.class);
}
Also used : JoynrRuntime(io.joynr.runtime.JoynrRuntime) ClusterControllerRuntime(io.joynr.runtime.ClusterControllerRuntime) Injector(com.google.inject.Injector) CCWebSocketRuntimeModule(io.joynr.runtime.CCWebSocketRuntimeModule) Properties(java.util.Properties) JoynrInjectorFactory(io.joynr.runtime.JoynrInjectorFactory)

Aggregations

CCWebSocketRuntimeModule (io.joynr.runtime.CCWebSocketRuntimeModule)6 JoynrInjectorFactory (io.joynr.runtime.JoynrInjectorFactory)4 Properties (java.util.Properties)4 Injector (com.google.inject.Injector)3 MqttPahoModule (io.joynr.messaging.mqtt.paho.client.MqttPahoModule)3 ClusterControllerRuntime (io.joynr.runtime.ClusterControllerRuntime)3 JoynrRuntime (io.joynr.runtime.JoynrRuntime)3 Module (com.google.inject.Module)2 StaticDomainAccessControlProvisioningModule (io.joynr.accesscontrol.StaticDomainAccessControlProvisioningModule)2 AtmosphereMessagingModule (io.joynr.messaging.AtmosphereMessagingModule)2 WebsocketModule (io.joynr.messaging.websocket.WebsocketModule)2 CCInProcessRuntimeModule (io.joynr.runtime.CCInProcessRuntimeModule)2 JoynrApplicationModule (io.joynr.runtime.JoynrApplicationModule)2 LibjoynrWebSocketRuntimeModule (io.joynr.runtime.LibjoynrWebSocketRuntimeModule)2 AbstractModule (com.google.inject.AbstractModule)1