OSGI-INF.blueprint.library.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"> <!-- Read default values at startup and inject to OvsdbConnectionService--> <cm:property-placeholder persistent-id="org.opendaylight.ovsdb.library" update-strategy="none"> <!-- Setting default values, in case library.cfg file is not present or config property is commented out. This will be overridden if user specify the property in library.cfg file--> <cm:default-properties> <cm:property name="ovsdb-listener-ip" value="0.0.0.0"/> <cm:property name="ovsdb-listener-port" value="6640"/> <cm:property name="ovsdb-rpc-task-timeout" value="1000"/> <cm:property name="use-ssl" value="false"/> <cm:property name="json-rpc-decoder-max-frame-length" value="100000"/> </cm:default-properties> </cm:property-placeholder> <!-- Notify OvsdbConnectionService with any change in the config properties value--> <bean id="ovsdbConnectionServiceConfigurator" class="org.opendaylight.ovsdb.lib.impl.OvsdbConnectionServiceConfigurator"> <argument ref="ovsdbConnectionService"/> <cm:managed-properties persistent-id="org.opendaylight.ovsdb.library" update-strategy="component-managed" update-method="updateConfigParameter"/> <property name="ovsdbListenerIp" value="${ovsdb-listener-ip}"/> <property name="ovsdbListenerPort" value="${ovsdb-listener-port}"/> <property name="ovsdbRpcTaskTimeout" value="${ovsdb-rpc-task-timeout}"/> <property name="useSsl" value="${use-ssl}"/> <property name="jsonRpcDecoderMaxFrameLength" value="${json-rpc-decoder-max-frame-length}"/> </bean> <reference id="certificateManager" interface="org.opendaylight.aaa.cert.api.ICertificateManager" filter="type=default-certificate-manager"/> <reference id="nettyBootstrapFactory" interface="org.opendaylight.ovsdb.lib.impl.NettyBootstrapFactory"/> <bean id="ovsdbConnectionService" class="org.opendaylight.ovsdb.lib.impl.OvsdbConnectionService"> <argument ref="nettyBootstrapFactory"/> <argument ref="certificateManager"/> </bean> <service ref="ovsdbConnectionService" interface="org.opendaylight.ovsdb.lib.OvsdbConnection"/> </blueprint>