<artifactId>maven-argeo-osgi-plugin</artifactId>
<version>${version.maven-argeo-osgi}</version>
<configuration>
+ <useDependencies>false</useDependencies>
<argsToAppend>
<arg>-clean</arg>
</argsToAppend>
<systemProperties>
<argeo.osgi.bundles>
${basedir}/../../demo/site;in=*;ex=target;ex=pom.xml;ex=.*,
+ ${project.build.directory}/lib;in=*.jar,
</argeo.osgi.bundles>
<!--
<argeo.osgi.bundles>
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-dependencies</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <includeTypes>jar</includeTypes>
+ <outputDirectory>${project.build.directory}/lib</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<dependencies>
org.springframework.web.servlet,
org.springframework.web.servlet.handler,
org.springframework.web.servlet.mvc,
+ org.springframework.web.servlet.mvc.annotation,
org.springframework.web.servlet.view;specification-version="2.5.6.SEC01"
<!-- MVC -->
<bean id="handlerMapping"
- class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
+ class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
<property name="interceptors">
<list>
<ref bean="osivInterceptor" />
<version>0.13.0-SNAPSHOT</version>
<properties>
<developmentCycle>0.13</developmentCycle>
- <version.argeo-distribution>1.0.4</version.argeo-distribution>
+ <version.argeo-distribution>1.1.0-SNAPSHOT</version.argeo-distribution>
<version.argeo-ria>0.12.4</version.argeo-ria>
- <version.argeo-commons>0.2.0</version.argeo-commons>
+ <version.argeo-commons>0.2.1-SNAPSHOT</version.argeo-commons>
<version.equinox>3.5.1.R35x_v20090827</version.equinox>
<version.maven-bundle-plugin>2.0.1</version.maven-bundle-plugin>
<version.maven-argeo-osgi>0.1.28</version.maven-argeo-osgi>
}
}
+ /**
+ * Generates a list of ref value choices based on the bean available in the
+ * application ocntext.
+ */
protected List<RefValueChoice> buildRefValueChoices(RefSpecAttribute rsa) {
List<RefValueChoice> choices = new ArrayList<RefValueChoice>();
if (applicationContext == null) {
return choices;
}
- for (String beanName : getBeanFactory().getBeanNamesForType(
+ beanNames: for (String beanName : getBeanFactory().getBeanNamesForType(
rsa.getTargetClass(), true, false)) {
+
+ // Since Spring 3, systemProperties is implicitly defined but has no
+ // bean definition
+// if (beanName.equals("systemProperties"))
+// continue beanNames;
+
BeanDefinition bd = getBeanFactory().getBeanDefinition(beanName);
RefValueChoice choice = new RefValueChoice();
choice.setName(beanName);
throw new UnsupportedOperationException();
}
+ public Object resolveContextualObject(String key) {
+ return executionContext.get().getVariable(key);
+ }
+
}
.getBean("testResult"));
}
+ // THis tests causes pb when using Spring 3
public void testContainers() throws Exception {
ConfigurableApplicationContext applicationContext = createApplicationContext("containers.xml");
((ExecutionFlow) applicationContext.getBean("test.list.flow1")).run();