Add test dependency and fix testcase

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@684676 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
antelder 2008-08-11 08:51:03 +00:00
parent cc3266ac65
commit cebf6560cb
2 changed files with 10 additions and 0 deletions

View file

@ -43,6 +43,13 @@
<version>1.4-SNAPSHOT</version>
</dependency>
<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>

View file

@ -101,6 +101,9 @@ class WebImplementationImpl implements WebImplementation, ComponentPreProcessor
* 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()) {