mqtt.mustache 734 Bytes
Newer Older
René Schöne's avatar
René Schöne committed
1
aspect MQTT {
René Schöne's avatar
René Schöne committed
2
  private String {{rootNodeName}}.MqttName() { return "RagConnectMQTT"; }
3
  private MqttServerHandler {{rootNodeName}}.{{mqttHandlerField}} = new MqttServerHandler(MqttName());
René Schöne's avatar
René Schöne committed
4

5
6
  public void {{rootNodeName}}.{{mqttSetupWaitUntilReadyMethod}}(long time, java.util.concurrent.TimeUnit unit) {
    {{mqttHandlerField}}.setupWaitUntilReady(time, unit);
René Schöne's avatar
René Schöne committed
7
8
  }

René Schöne's avatar
René Schöne committed
9
  {{#RootTypeComponents}}
10
  {{#first}}inh MqttServerHandler ASTNode.{{mqttHandlerAttribute}}();{{/first}}
11
  eq {{rootNodeName}}.get{{name}}().{{mqttHandlerAttribute}}() = {{mqttHandlerField}};
René Schöne's avatar
René Schöne committed
12
13
  {{/RootTypeComponents}}
  {{^RootTypeComponents}}
14
  syn MqttServerHandler {{rootNodeName}}.{{mqttHandlerAttribute}}() = {{mqttHandlerField}};
René Schöne's avatar
René Schöne committed
15
  {{/RootTypeComponents}}
René Schöne's avatar
René Schöne committed
16
}