Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

spring-context-servlet-security-test.xml 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?xml version="1.0"?>
  2. <!--
  3. ~ Licensed to the Apache Software Foundation (ASF) under one
  4. ~ or more contributor license agreements. See the NOTICE file
  5. ~ distributed with this work for additional information
  6. ~ regarding copyright ownership. The ASF licenses this file
  7. ~ to you under the Apache License, Version 2.0 (the
  8. ~ "License"); you may not use this file except in compliance
  9. ~ with the License. You may obtain a copy of the License at
  10. ~
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~
  13. ~ Unless required by applicable law or agreed to in writing,
  14. ~ software distributed under the License is distributed on an
  15. ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. ~ KIND, either express or implied. See the License for the
  17. ~ specific language governing permissions and limitations
  18. ~ under the License.
  19. -->
  20. <beans xmlns="http://www.springframework.org/schema/beans"
  21. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  22. xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
  23. xsi:schemaLocation="http://www.springframework.org/schema/beans
  24. http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  25. http://www.springframework.org/schema/context
  26. http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"
  27. default-lazy-init="true">
  28. <context:property-placeholder system-properties-mode="OVERRIDE"/>
  29. <context:annotation-config/>
  30. <context:component-scan
  31. base-package="org.apache.archiva.redback.keys,org.apache.archiva.webdav,org.apache.archiva.metadata.repository,org.apache.archiva.webdav.util,org.apache.archiva.common.plexusbridge"/>
  32. <bean name="scheduler" class="org.apache.archiva.components.scheduler.DefaultScheduler">
  33. <property name="properties">
  34. <props>
  35. <prop key="org.quartz.scheduler.instanceName">scheduler1</prop>
  36. <prop key="org.quartz.threadPool.class">org.quartz.simpl.SimpleThreadPool</prop>
  37. <prop key="org.quartz.threadPool.threadCount">1</prop>
  38. <prop key="org.quartz.threadPool.threadPriority">4</prop>
  39. <prop key="org.quartz.jobStore.class">org.quartz.simpl.RAMJobStore</prop>
  40. </props>
  41. </property>
  42. </bean>
  43. <bean name="servletAuthenticator" class="org.apache.archiva.webdav.MockServletAuthenticator"/>
  44. <bean name="archivaConfiguration#default" class="org.apache.archiva.configuration.DefaultArchivaConfiguration">
  45. <property name="registry" ref="registry#default"/>
  46. </bean>
  47. <alias name="archivaConfiguration#default" alias="archivaConfiguration"/>
  48. <bean name="registry#default" class="org.apache.archiva.components.registry.commons.CommonsConfigurationRegistry">
  49. <property name="properties">
  50. <value>
  51. <![CDATA[
  52. <configuration>
  53. <system/>
  54. </configuration>
  55. ]]>
  56. </value>
  57. </property>
  58. </bean>
  59. <!--
  60. <bean name="davResourceFactory#archiva" class="org.apache.archiva.webdav.UnauthenticatedDavResourceFactory">
  61. <property name="servletAuth" ref="servletAuthenticator"/>
  62. </bean>
  63. -->
  64. <alias name="userConfiguration#redback" alias="userConfiguration#default"/>
  65. <alias name="authorizer#rbac" alias="authorizer#default"/>
  66. <alias name="userManager#configurable" alias="userManager#default"/>
  67. <!-- ***
  68. JPA settings
  69. *** -->
  70. <bean name="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
  71. <property name="jpaVendorAdapter" >
  72. <bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter" />
  73. </property>
  74. <property name="persistenceXmlLocation" value="classpath:META-INF/persistence-hsqldb.xml" />
  75. <property name="jpaPropertyMap">
  76. <map>
  77. <entry key="openjpa.ConnectionURL" value="jdbc:hsqldb:mem:redback_database" />
  78. <entry key="openjpa.ConnectionDriverName" value="org.hsqldb.jdbcDriver" />
  79. <entry key="openjpa.ConnectionUserName" value="sa" />
  80. <entry key="openjpa.ConnectionPassword" value="" />
  81. <entry key="openjpa.Log" value="${openjpa.Log:DefaultLevel=INFO,Runtime=ERROR,Tool=ERROR,SQL=ERROR,Schema=ERROR,MetaData=ERROR}" />
  82. <entry key="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" />
  83. <entry key="openjpa.jdbc.MappingDefaults"
  84. value="ForeignKeyDeleteAction=restrict,JoinForeignKeyDeleteAction=restrict"/>
  85. </map>
  86. </property>
  87. </bean>
  88. <bean name="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager" >
  89. <property name="entityManagerFactory" ref="entityManagerFactory" />
  90. </bean>
  91. <tx:annotation-driven />
  92. <!-- ***
  93. End of JPA settings
  94. *** -->
  95. </beans>