Skip to content

Commit d475809

Browse files
committed
Explicit inclusion of 'peel-core.xml' and 'peel-extensions.xml'.
1 parent 1fd59cb commit d475809

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

peel-core/src/main/scala/org/peelframework/core/PeelApplicationContext.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ object PeelApplicationContext {
3131
def apply(experimentsXMLPath: Option[String] = None): ApplicationContext = {
3232
// construct classpath
3333
val cp = Array(
34-
Option(getClass.getResource("/peel-core.xml")) /* */ map { x => s"classpath:${lastPartOf(x)}" },
35-
Option(getClass.getResource("/peel-extensions.xml")) map { x => s"classpath:${lastPartOf(x)}" },
36-
experimentsXMLPath /* */ map { x => s"file:$x" }
34+
experimentsXMLPath map { x => s"file:$x" }
3735
).flatten
3836
// construct and return application context
3937
val ac = new ClassPathXmlApplicationContext(cp, true)

peel-empty-bundle/src/main/resources/config/experiments.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans"
44
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
55

6+
<!-- Peel configuratoins -->
7+
<import resource="classpath:peel-core.xml"/>
8+
<import resource="classpath:peel-extensions.xml"/>
9+
610
<!-- custom system beans -->
711
<import resource="systems.xml"/>
812
<!-- wordcount experiment beans -->

0 commit comments

Comments
 (0)