<commit_before><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:util="http://www.springframework.org/schema/util"
  xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
    ">

  <bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
    <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
    <property name="locations">
      <list>
        <value>file:${opennms.home}/etc/model-importer.properties</value>
      </list>
    </property>
  </bean>

  <!-- 
    DataSourceFactory has been changed to return TransactionAwareDataSources so
    legacy code can participate in transactions properly.
  -->
  <bean id="dataSource" class="org.opennms.netmgt.config.DataSourceFactoryBean" />

  <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
    <property name="dataSource" ref="dataSource" />
  </bean>

  <bean id="timeKeeper" class="org.opennms.core.utils.DefaultTimeKeeper" />

  <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    <property name="dataSource" ref="dataSource" />
    <property name="annotatedClasses">
      <list>
        <value>org.opennms.netmgt.model.OnmsDistPoller</value>
        <value>org.opennms.netmgt.model.OnmsAssetRecord</value>
        <value>org.opennms.netmgt.model.PathElement</value>
        <value>org.opennms.netmgt.model.OnmsNode</value>
        <value>org.opennms.netmgt.model.OnmsIpInterface</value>
        <value>org.opennms.netmgt.model.OnmsSnmpInterface</value>
        <value>org.opennms.netmgt.model.OnmsArpInterface</value>
        <value>org.opennms.netmgt.model.OnmsMonitoredService</value>
        <value>org.opennms.netmgt.model.OnmsCategory</value>
        <value>org.opennms.netmgt.model.OnmsServiceType</value>
        <value>org.opennms.netmgt.model.OnmsOutage</value>
        <value>org.opennms.netmgt.model.OnmsEvent</value>
        <value>org.opennms.netmgt.model.OnmsAlarm</value>
        <value>org.opennms.netmgt.model.OnmsNotification</value>
        <value>org.opennms.netmgt.model.OnmsUserNotification</value>
        <value>org.opennms.netmgt.model.OnmsLocationMonitor</value>
        <value>org.opennms.netmgt.model.OnmsLocationSpecificStatus</value>
        <value>org.opennms.netmgt.model.PollStatus</value>
        <value>org.opennms.netmgt.model.AvailabilityReportLocator</value>
        <value>org.opennms.netmgt.model.OnmsApplication</value>
        <value>org.opennms.netmgt.model.ResourceReference</value>
        <value>org.opennms.netmgt.model.StatisticsReportData</value>
        <value>org.opennms.netmgt.model.StatisticsReport</value>
        <value>org.opennms.netmgt.model.OnmsMap</value>
        <value>org.opennms.netmgt.model.OnmsMapElement</value>
        <value>org.opennms.netmgt.model.DataLinkInterface</value>
        <value>org.opennms.netmgt.model.OnmsAcknowledgment</value>
      </list>
    </property>
    <!--  property name="schemaUpdate" value="true">
      </property -->
    <property name="annotatedPackages">
      <list>
        <value>org.opennms.netmgt.model</value>
      </list>
    </property>
    <property name="hibernateProperties">
      <value>
        hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
        hibernate.cache.use_second_level_cache=false
        hibernate.cache=false
        hibernate.cache.use_query_cache=false
        hibernate.jdbc.batch_size=0
        <!-- hibernate.format_sql=true -->
      </value>
    </property>
  </bean>

  <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate">
    <property name="transactionManager" ref="transactionManager" />
  </bean>

  <bean id="acknowledgmentDao" class="org.opennms.netmgt.dao.hibernate.AcknowledgmentDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="alarmDao" class="org.opennms.netmgt.dao.hibernate.AlarmDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="assetRecordDao" class="org.opennms.netmgt.dao.hibernate.AssetRecordDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="categoryDao" class="org.opennms.netmgt.dao.hibernate.CategoryDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="distPollerDao" class="org.opennms.netmgt.dao.hibernate.DistPollerDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="demandPollDao" class="org.opennms.netmgt.dao.hibernate.DemandPollDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="eventDao" class="org.opennms.netmgt.dao.hibernate.EventDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="ipInterfaceDao" class="org.opennms.netmgt.dao.hibernate.IpInterfaceDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="monitoredServiceDao" class="org.opennms.netmgt.dao.hibernate.MonitoredServiceDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="nodeDao" class="org.opennms.netmgt.dao.hibernate.NodeDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="notificationDao" class="org.opennms.netmgt.dao.hibernate.NotificationDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="outageDao" class="org.opennms.netmgt.dao.hibernate.OutageDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="serviceTypeDao" class="org.opennms.netmgt.dao.hibernate.ServiceTypeDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="snmpInterfaceDao" class="org.opennms.netmgt.dao.hibernate.SnmpInterfaceDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="userNotificationDao" class="org.opennms.netmgt.dao.hibernate.UserNotificationDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="applicationDao" class="org.opennms.netmgt.dao.hibernate.ApplicationDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="availabilityReportLocatorDao" class="org.opennms.netmgt.dao.hibernate.AvailabilityReportLocatorDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="statisticsReportDao" class="org.opennms.netmgt.dao.hibernate.StatisticsReportDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="statisticsReportDataDao" class="org.opennms.netmgt.dao.hibernate.StatisticsReportDataDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="resourceReferenceDao" class="org.opennms.netmgt.dao.hibernate.ResourceReferenceDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="locationMonitorConfigResourceLocation" class="java.lang.String">
    <constructor-arg value="file:${opennms.home}/etc/monitoring-locations.xml" />
  </bean>

  <bean id="locationMonitorDao" class="org.opennms.netmgt.dao.hibernate.LocationMonitorDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
    <property name="monitoringLocationConfigResource" ref="locationMonitorConfigResourceLocation" />
  </bean>
  
  <bean id="surveillanceViewConfigResourceLocation" class="java.lang.String">
    <constructor-arg value="file:${opennms.home}/etc/surveillance-views.xml" />
  </bean>

  <bean id="surveillanceViewConfigDao" class="org.opennms.netmgt.dao.castor.DefaultSurveillanceViewConfigDao">
    <property name="configResource" ref="surveillanceViewConfigResourceLocation" />
  </bean>

  <bean id="databaseSchemaConfigFactory-init" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.config.DatabaseSchemaConfigFactory.init</value></property>
  </bean>

  <bean id="databaseSchemaConfigFactory" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="databaseSchemaConfigFactory-init">
    <property name="staticMethod"><value>org.opennms.netmgt.config.DatabaseSchemaConfigFactory.getInstance</value></property>
  </bean>

  <bean id="filterDao" class="org.opennms.netmgt.dao.support.JdbcFilterDao">
    <property name="dataSource" ref="dataSource" />
    <property name="databaseSchemaConfigFactory" ref="databaseSchemaConfigFactory" />
    <property name="nodeDao" ref="nodeDao" />
  </bean>

  <bean id="collectdConfig-init" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.config.CollectdConfigFactory.init</value></property>
  </bean>

  <bean id="collectdConfig" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="collectdConfig-init">
    <property name="staticMethod"><value>org.opennms.netmgt.config.CollectdConfigFactory.getInstance</value></property>
  </bean>

  <bean id="dataCollectionConfig-init" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.config.DataCollectionConfigFactory.init</value></property>
  </bean>

  <bean id="dataCollectionConfig" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="dataCollectionConfig-init">
    <property name="staticMethod"><value>org.opennms.netmgt.config.DataCollectionConfigFactory.getInstance</value></property>
  </bean>

  <bean id="resourceDao" class="org.opennms.netmgt.dao.support.DefaultResourceDao">
    <property name="nodeDao" ref="nodeDao" />
    <property name="locationMonitorDao" ref="locationMonitorDao" />
    <property name="collectdConfig" ref="collectdConfig" />
    <property name="dataCollectionConfig" ref="dataCollectionConfig" />
    <property name="rrdDirectory" value="${rrd.base.dir}" />
  </bean>

  <bean id="rrdStrategy-init" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.rrd.RrdUtils.graphicsInitialize</value></property>
  </bean>

  <bean id="rrdStrategy" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="rrdStrategy-init">
    <property name="staticMethod"><value>org.opennms.netmgt.rrd.RrdUtils.getStrategy</value></property>
  </bean>

  <bean id="rrdDao" class="org.opennms.netmgt.dao.support.DefaultRrdDao">
    <property name="rrdStrategy" ref="rrdStrategy" />
    <property name="rrdBaseDirectory" value="${rrd.base.dir}" />
    <property name="rrdBinaryPath" value="${rrd.binary}" />
  </bean>

  <bean id="statsdConfigResourceLocation" class="java.lang.String">
    <constructor-arg value="file:${opennms.home}/etc/statsd-configuration.xml" />
  </bean>

  <bean id="statsdConfigDao" class="org.opennms.netmgt.dao.castor.DefaultStatisticsDaemonConfigDao">
    <property name="configResource" ref="statsdConfigResourceLocation" />
  </bean>
  
  <bean id="snmpConfigDao" class="org.opennms.netmgt.dao.FactoryBasedSnmpConfigDao" />
  
  <bean id="javamailConfigResourceLocation" class="java.lang.String">
    <constructor-arg value="file:${opennms.home}/etc/javamail-configuration.xml" />
  </bean>

  <bean id="javamailConfigDao" class="org.opennms.netmgt.dao.castor.DefaultJavamailConfigurationDao">
    <property name="configResource" ref="javamailConfigResourceLocation" />
  </bean>

  <bean id="onmsMapDao" class="org.opennms.netmgt.dao.hibernate.OnmsMapDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="onmsMapElementDao" class="org.opennms.netmgt.dao.hibernate.OnmsMapElementDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="dataLinkInterfaceDao" class="org.opennms.netmgt.dao.hibernate.DataLinkInterfaceDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>
  
</beans><commit_msg>remove duplicate snmpConfig bean<commit_after><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:util="http://www.springframework.org/schema/util"
  xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
    ">

  <bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
    <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
    <property name="locations">
      <list>
        <value>file:${opennms.home}/etc/model-importer.properties</value>
      </list>
    </property>
  </bean>

  <!-- 
    DataSourceFactory has been changed to return TransactionAwareDataSources so
    legacy code can participate in transactions properly.
  -->
  <bean id="dataSource" class="org.opennms.netmgt.config.DataSourceFactoryBean" />

  <bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
    <property name="dataSource" ref="dataSource" />
  </bean>

  <bean id="timeKeeper" class="org.opennms.core.utils.DefaultTimeKeeper" />

  <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    <property name="dataSource" ref="dataSource" />
    <property name="annotatedClasses">
      <list>
        <value>org.opennms.netmgt.model.OnmsDistPoller</value>
        <value>org.opennms.netmgt.model.OnmsAssetRecord</value>
        <value>org.opennms.netmgt.model.PathElement</value>
        <value>org.opennms.netmgt.model.OnmsNode</value>
        <value>org.opennms.netmgt.model.OnmsIpInterface</value>
        <value>org.opennms.netmgt.model.OnmsSnmpInterface</value>
        <value>org.opennms.netmgt.model.OnmsArpInterface</value>
        <value>org.opennms.netmgt.model.OnmsMonitoredService</value>
        <value>org.opennms.netmgt.model.OnmsCategory</value>
        <value>org.opennms.netmgt.model.OnmsServiceType</value>
        <value>org.opennms.netmgt.model.OnmsOutage</value>
        <value>org.opennms.netmgt.model.OnmsEvent</value>
        <value>org.opennms.netmgt.model.OnmsAlarm</value>
        <value>org.opennms.netmgt.model.OnmsNotification</value>
        <value>org.opennms.netmgt.model.OnmsUserNotification</value>
        <value>org.opennms.netmgt.model.OnmsLocationMonitor</value>
        <value>org.opennms.netmgt.model.OnmsLocationSpecificStatus</value>
        <value>org.opennms.netmgt.model.PollStatus</value>
        <value>org.opennms.netmgt.model.AvailabilityReportLocator</value>
        <value>org.opennms.netmgt.model.OnmsApplication</value>
        <value>org.opennms.netmgt.model.ResourceReference</value>
        <value>org.opennms.netmgt.model.StatisticsReportData</value>
        <value>org.opennms.netmgt.model.StatisticsReport</value>
        <value>org.opennms.netmgt.model.OnmsMap</value>
        <value>org.opennms.netmgt.model.OnmsMapElement</value>
        <value>org.opennms.netmgt.model.DataLinkInterface</value>
        <value>org.opennms.netmgt.model.OnmsAcknowledgment</value>
      </list>
    </property>
    <!--  property name="schemaUpdate" value="true">
      </property -->
    <property name="annotatedPackages">
      <list>
        <value>org.opennms.netmgt.model</value>
      </list>
    </property>
    <property name="hibernateProperties">
      <value>
        hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
        hibernate.cache.use_second_level_cache=false
        hibernate.cache=false
        hibernate.cache.use_query_cache=false
        hibernate.jdbc.batch_size=0
        <!-- hibernate.format_sql=true -->
      </value>
    </property>
  </bean>

  <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate">
    <property name="transactionManager" ref="transactionManager" />
  </bean>

  <bean id="acknowledgmentDao" class="org.opennms.netmgt.dao.hibernate.AcknowledgmentDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="alarmDao" class="org.opennms.netmgt.dao.hibernate.AlarmDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="assetRecordDao" class="org.opennms.netmgt.dao.hibernate.AssetRecordDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="categoryDao" class="org.opennms.netmgt.dao.hibernate.CategoryDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="distPollerDao" class="org.opennms.netmgt.dao.hibernate.DistPollerDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="demandPollDao" class="org.opennms.netmgt.dao.hibernate.DemandPollDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="eventDao" class="org.opennms.netmgt.dao.hibernate.EventDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="ipInterfaceDao" class="org.opennms.netmgt.dao.hibernate.IpInterfaceDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="monitoredServiceDao" class="org.opennms.netmgt.dao.hibernate.MonitoredServiceDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="nodeDao" class="org.opennms.netmgt.dao.hibernate.NodeDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="notificationDao" class="org.opennms.netmgt.dao.hibernate.NotificationDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="outageDao" class="org.opennms.netmgt.dao.hibernate.OutageDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="serviceTypeDao" class="org.opennms.netmgt.dao.hibernate.ServiceTypeDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="snmpInterfaceDao" class="org.opennms.netmgt.dao.hibernate.SnmpInterfaceDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="userNotificationDao" class="org.opennms.netmgt.dao.hibernate.UserNotificationDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="applicationDao" class="org.opennms.netmgt.dao.hibernate.ApplicationDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="availabilityReportLocatorDao" class="org.opennms.netmgt.dao.hibernate.AvailabilityReportLocatorDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="statisticsReportDao" class="org.opennms.netmgt.dao.hibernate.StatisticsReportDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="statisticsReportDataDao" class="org.opennms.netmgt.dao.hibernate.StatisticsReportDataDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="resourceReferenceDao" class="org.opennms.netmgt.dao.hibernate.ResourceReferenceDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="locationMonitorConfigResourceLocation" class="java.lang.String">
    <constructor-arg value="file:${opennms.home}/etc/monitoring-locations.xml" />
  </bean>

  <bean id="locationMonitorDao" class="org.opennms.netmgt.dao.hibernate.LocationMonitorDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
    <property name="monitoringLocationConfigResource" ref="locationMonitorConfigResourceLocation" />
  </bean>
  
  <bean id="surveillanceViewConfigResourceLocation" class="java.lang.String">
    <constructor-arg value="file:${opennms.home}/etc/surveillance-views.xml" />
  </bean>

  <bean id="surveillanceViewConfigDao" class="org.opennms.netmgt.dao.castor.DefaultSurveillanceViewConfigDao">
    <property name="configResource" ref="surveillanceViewConfigResourceLocation" />
  </bean>

  <bean id="databaseSchemaConfigFactory-init" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.config.DatabaseSchemaConfigFactory.init</value></property>
  </bean>

  <bean id="databaseSchemaConfigFactory" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="databaseSchemaConfigFactory-init">
    <property name="staticMethod"><value>org.opennms.netmgt.config.DatabaseSchemaConfigFactory.getInstance</value></property>
  </bean>

  <bean id="filterDao" class="org.opennms.netmgt.dao.support.JdbcFilterDao">
    <property name="dataSource" ref="dataSource" />
    <property name="databaseSchemaConfigFactory" ref="databaseSchemaConfigFactory" />
    <property name="nodeDao" ref="nodeDao" />
  </bean>

  <bean id="collectdConfig-init" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.config.CollectdConfigFactory.init</value></property>
  </bean>

  <bean id="collectdConfig" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="collectdConfig-init">
    <property name="staticMethod"><value>org.opennms.netmgt.config.CollectdConfigFactory.getInstance</value></property>
  </bean>

  <bean id="dataCollectionConfig-init" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.config.DataCollectionConfigFactory.init</value></property>
  </bean>

  <bean id="dataCollectionConfig" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="dataCollectionConfig-init">
    <property name="staticMethod"><value>org.opennms.netmgt.config.DataCollectionConfigFactory.getInstance</value></property>
  </bean>

  <bean id="resourceDao" class="org.opennms.netmgt.dao.support.DefaultResourceDao">
    <property name="nodeDao" ref="nodeDao" />
    <property name="locationMonitorDao" ref="locationMonitorDao" />
    <property name="collectdConfig" ref="collectdConfig" />
    <property name="dataCollectionConfig" ref="dataCollectionConfig" />
    <property name="rrdDirectory" value="${rrd.base.dir}" />
  </bean>

  <bean id="rrdStrategy-init" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
    <property name="staticMethod"><value>org.opennms.netmgt.rrd.RrdUtils.graphicsInitialize</value></property>
  </bean>

  <bean id="rrdStrategy" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" depends-on="rrdStrategy-init">
    <property name="staticMethod"><value>org.opennms.netmgt.rrd.RrdUtils.getStrategy</value></property>
  </bean>

  <bean id="rrdDao" class="org.opennms.netmgt.dao.support.DefaultRrdDao">
    <property name="rrdStrategy" ref="rrdStrategy" />
    <property name="rrdBaseDirectory" value="${rrd.base.dir}" />
    <property name="rrdBinaryPath" value="${rrd.binary}" />
  </bean>

  <bean id="statsdConfigResourceLocation" class="java.lang.String">
    <constructor-arg value="file:${opennms.home}/etc/statsd-configuration.xml" />
  </bean>

  <bean id="statsdConfigDao" class="org.opennms.netmgt.dao.castor.DefaultStatisticsDaemonConfigDao">
    <property name="configResource" ref="statsdConfigResourceLocation" />
  </bean>
  
  <bean id="javamailConfigResourceLocation" class="java.lang.String">
    <constructor-arg value="file:${opennms.home}/etc/javamail-configuration.xml" />
  </bean>

  <bean id="javamailConfigDao" class="org.opennms.netmgt.dao.castor.DefaultJavamailConfigurationDao">
    <property name="configResource" ref="javamailConfigResourceLocation" />
  </bean>

  <bean id="onmsMapDao" class="org.opennms.netmgt.dao.hibernate.OnmsMapDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="onmsMapElementDao" class="org.opennms.netmgt.dao.hibernate.OnmsMapElementDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>

  <bean id="dataLinkInterfaceDao" class="org.opennms.netmgt.dao.hibernate.DataLinkInterfaceDaoHibernate">
    <property name="sessionFactory" ref="sessionFactory" />
  </bean>
  
</beans>
{'fraction_non_alphanumeric': 0.14783089251174358, 'fraction_numerical': 0.0011842261082382663, 'mean_word_length': 5.21845851742759, 'pattern_counts': {'":': 0, '<': 518, '<?xml version=': 2, '>': 518, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 16}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5938287', 'n_tokens_mistral': 8272, 'n_tokens_neox': 8114, 'n_words': 887}