Skip to content

Commit

Permalink
Simplify component scanning to the 'org.fcrepo' package
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Woods committed Sep 10, 2014
1 parent 9735004 commit 55c4a61
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 15 deletions.
Expand Up @@ -11,7 +11,7 @@

<context:annotation-config />

<context:component-scan base-package="org.fcrepo.kernel" />
<context:component-scan base-package="org.fcrepo" />

<bean name="modeshapeRepofactory" class="org.fcrepo.kernel.impl.spring.ModeShapeRepositoryFactoryBean"
depends-on="authenticationProvider" p:repositoryConfiguration="${fcrepo.modeshape.configuration:repository.json}"/>
Expand Down
Expand Up @@ -11,7 +11,7 @@

<context:annotation-config />

<context:component-scan base-package="org.fcrepo.http,org.fcrepo.kernel, org.fcrepo.serialization,org.fcrepo.generator"/>
<context:component-scan base-package="org.fcrepo"/>

<bean class="org.fcrepo.http.commons.session.SessionFactory" />

Expand Down
Expand Up @@ -13,7 +13,7 @@

<context:annotation-config />

<context:component-scan base-package="org.modeshape.web.jcr.rest, org.fcrepo.http"/>
<context:component-scan base-package="org.fcrepo"/>

</beans>

3 changes: 1 addition & 2 deletions fcrepo-http-api/src/test/resources/spring-test/rest.xml
Expand Up @@ -18,7 +18,6 @@

<context:annotation-config/>

<context:component-scan
base-package="org.fcrepo.kernel, org.fcrepo.http, org.fcrepo.serialization"/>
<context:component-scan base-package="org.fcrepo"/>

</beans>
Expand Up @@ -7,7 +7,7 @@
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">

<context:annotation-config />
<context:component-scan base-package="org.fcrepo.kernel" />
<context:component-scan base-package="org.fcrepo" />

<task:scheduler id="taskScheduler" />
<task:executor id="taskExecutor" pool-size="1" />
Expand Down
2 changes: 1 addition & 1 deletion fcrepo-kernel-impl/src/test/resources/spring-test/repo.xml
Expand Up @@ -17,7 +17,7 @@
class="org.fcrepo.kernel.impl.spring.ModeShapeRepositoryFactoryBean"
p:repositoryConfiguration="${fcrepo.modeshape.configuration:/config/testing/repository.json}"/>

<context:component-scan base-package="org.fcrepo.kernel, org.fcrepo.storage.policy"/>
<context:component-scan base-package="org.fcrepo"/>

<bean class="org.modeshape.jcr.JcrRepositoryFactory"/>

Expand Down
3 changes: 1 addition & 2 deletions fcrepo-transform/src/test/resources/spring-test/rest.xml
Expand Up @@ -15,8 +15,7 @@

<context:annotation-config/>

<context:component-scan base-package="org.fcrepo.http, org.fcrepo.kernel,
org.fcrepo.transform.http, org.fcrepo.serialization"/>
<context:component-scan base-package="org.fcrepo"/>

<bean class="org.fcrepo.http.commons.session.SessionFactory" />

Expand Down
4 changes: 1 addition & 3 deletions fcrepo-webapp/src/main/resources/spring/rest.xml
Expand Up @@ -25,8 +25,6 @@

<bean class="org.fcrepo.storage.policy.StoragePolicyDecisionPointImpl"/>

<context:component-scan
base-package="org.fcrepo.kernel, org.modeshape.web.jcr.rest, org.fcrepo.http, org.fcrepo.serialization,
org.fcrepo.audit, org.fcrepo.storage.policy, org.fcrepo.transform, org.fcrepo.auth.roles.common"/>
<context:component-scan base-package="org.fcrepo"/>

</beans>
1 change: 0 additions & 1 deletion fcrepo-webapp/src/main/resources/spring/transactions.xml
Expand Up @@ -7,7 +7,6 @@
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">

<context:annotation-config />
<context:component-scan base-package="org.fcrepo.http.commons.api, org.fcrepo.api" />

<task:scheduler id="taskScheduler" />
<task:executor id="taskExecutor" pool-size="1" />
Expand Down
3 changes: 1 addition & 2 deletions fcrepo-webapp/src/test/resources/spring-test/rest.xml
Expand Up @@ -20,7 +20,6 @@

<context:annotation-config />

<context:component-scan base-package="org.fcrepo.kernel, org.fcrepo.http.commons.exceptionhandlers,
org.fcrepo.http.commons.responses, org.fcrepo.auth.roles.common"/>
<context:component-scan base-package="org.fcrepo"/>

</beans>

0 comments on commit 55c4a61

Please sign in to comment.