apache-ignite
28 строк · 1.1 Кб
1{#
2Licensed to the Apache Software Foundation (ASF) under one or more
3contributor license agreements. See the NOTICE file distributed with
4this work for additional information regarding copyright ownership.
5The ASF licenses this file to You under the Apache License, Version 2.0
6(the "License"); you may not use this file except in compliance with
7the License. You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18{% macro communication_spi(spi) %}
19<property name="communicationSpi">
20<bean class="{{ spi.class_name }}">
21{% for name, value in spi.__dict__.items() %}
22{% if value %}
23<property name="{{ name | snake_to_camel }}" value="{{ value }}"/>
24{% endif %}
25{% endfor %}
26</bean>
27</property>
28{% endmacro %}
29