All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.meta.beans.xml Maven / Gradle / Ivy

There is a newer version: 0.9.8.10
Show newest version
<!--
  ~ Copyright (c) 2016 Dmitry Ovchinnikov
  ~ Marid, the free data acquisition and visualization software
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU Affero General Public License as
  ~ published by the Free Software Foundation, either version 3 of
  ~ the License, or (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU Affero General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Affero General Public License
  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->

<beans xmlns="http://www.springframework.org/schema/beans" default-lazy-init="true">

    <bean name="randomNumericDaqGenerator" class="org.marid.db.generator.RandomNumericDaqGenerator">
        <description>Random numeric DAQ generator</description>

        <constructor-arg name="numericWriter" ref="numericWriter"/>
        <constructor-arg name="max" value="1.0"/>
        <constructor-arg name="min" value="0.0"/>
        <constructor-arg name="periodSeconds" value="1"/>
        <constructor-arg name="tag" value="1"/>

        <meta key="icon" value="P_ADD"/>
    </bean>

    <bean name="swingNumericDaqGenerator" class="org.marid.db.generator.swing.SwingNumericDaqGenerator">
        <description>SWING numeric DAQ generator</description>

        <constructor-arg name="numericWriter" ref="numericWriter"/>

        <meta key="icon" value="P_ADD"/>
    </bean>

    <bean name="hsqldbDatabase" class="org.marid.db.hsqldb.HsqldbDatabase">
        <description>HSQLDB database</description>

        <constructor-arg name="properties">
            <bean name="hsqldbProperties" class="org.marid.db.hsqldb.HsqldbProperties">
                <property name="directory" value="${user.home}/data"/>
            </bean>
        </constructor-arg>

        <meta key="ICON" value="P_ADD"/>
    </bean>

    <bean name="hsqldbDatabaseDataSource" factory-bean="hsqldbDatabase" factory-method="dataSource">
        <description>HSQLDB database datasource</description>

        <constructor-arg name="name" value="NUMERICS"/>

        <meta key="ICON" value="P_ADD"/>
    </bean>

    <bean name="numericWriter" class="org.marid.db.hsqldb.HsqldbDaqNumericWriter">
        <description>HSQLDB numeric writer</description>

        <constructor-arg name="dataSource" ref="hsqldbDatabaseDataSource"/>
        <constructor-arg name="table" value="NUMERICS"/>

        <meta key="icon" value="P_ADD"/>
    </bean>

    <bean name="hsqldbDataSource" class="org.hsqldb.jdbc.JDBCDataSource">
        <description>HSQLDB data source</description>

        <property name="url" value="hsql://localhost:9001/NUMERICS"/>
        <property name="loginTimeout" value="1000"/>
        <property name="user" value="SA"/>
        <property name="password" value="#{''}"/>
        
        <meta key="icon" value="P_ADD"/>
    </bean>

    <bean name="hsqldbNumericReader" class="org.marid.db.hsqldb.HsqldbDaqNumericReader">
        <description>HSQLDB numeric reader</description>

        <constructor-arg name="dataSource" value="hsqldbDataSource"/>
        <constructor-arg name="table" value="NUMERICS"/>

        <meta key="icon" value="P_ADD"/>
    </bean>
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy