/activeobjects-confluence-spi/src/main/resources/META-INF/spring/plugin-context.xml

https://bitbucket.org/activeobjects/ao-plugin · XML · 18 lines · 14 code · 3 blank · 1 comment · 0 complexity · 10fbabbae30906e0087a2c48015f64c4 MD5 · raw file

  1. <beans xmlns="http://www.springframework.org/schema/beans"
  2. xmlns:osgi="http://www.springframework.org/schema/osgi"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="
  5. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
  6. http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
  7. <!-- Make this an optional service to avoid circular dependency with active objects plugin -->
  8. <osgi:reference id="backup" interface="com.atlassian.activeobjects.spi.Backup" cardinality='0..1'/>
  9. <osgi:reference id="transactionTemplate" interface="com.atlassian.sal.api.transaction.TransactionTemplate" timeout="2000" cardinality="0..1"/>
  10. <osgi:reference id="threadLocalDelegateExecutorFactory" interface="com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory"/>
  11. <osgi:reference id="tenantAwareDataSourceProvider" interface="com.atlassian.activeobjects.spi.TenantAwareDataSourceProvider"/>
  12. <bean id="defaultInitExecutorServiceProvider" class="com.atlassian.activeobjects.spi.DefaultInitExecutorServiceProvider">
  13. <constructor-arg index="0" ref="threadLocalDelegateExecutorFactory"/>
  14. </bean>
  15. </beans>