Author: antelder
Date: Mon Aug 11 01:51:03 2008
New Revision: 684676
URL: http://svn.apache.org/viewvc?rev=684676&view=rev
Log:
Add test dependency and fix testcase
Modified:
tuscany/java/sca/modules/implementation-web/pom.xml
tuscany/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java
Modified: tuscany/java/sca/modules/implementation-web/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-web/pom.xml?rev=684676&r1=684675&r2=684676&view=diff
==============================================================================
--- tuscany/java/sca/modules/implementation-web/pom.xml (original)
+++ tuscany/java/sca/modules/implementation-web/pom.xml Mon Aug 11 01:51:03 2008
@@ -45,6 +45,13 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-contribution-xml</artifactId>
+ <version>1.4-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-host-embedded</artifactId>
<version>1.4-SNAPSHOT</version>
<scope>test</scope>
Modified:
tuscany/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java
URL:
http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java?rev=684676&r1=684675&r2=684676&view=diff
==============================================================================
---
tuscany/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java
(original)
+++
tuscany/java/sca/modules/implementation-web/src/main/java/org/apache/tuscany/sca/implementation/web/impl/WebImplementationImpl.java
Mon Aug 11 01:51:03 2008
@@ -101,6 +101,9 @@
* TODO: also support introspection and handle WEB-INF/web.componentType
(spec line 503)
*/
public void preProcess(Component component) {
+ if (!(component instanceof RuntimeComponent)) {
+ return;
+ }
RuntimeComponent rtc = (RuntimeComponent) component;
for (Reference reference : rtc.getReferences()) {