diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-13 09:20:13 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-13 09:20:13 +0000 |
commit | 89244e67bd9014dfca57d61a6b5f75ef4a76d7f5 (patch) | |
tree | 47b4e98e44a9d53f5990b5cf52d5f9f498bf6350 /sca-java-2.x/trunk | |
parent | a1c1199a2913d964e51390ffec8db8eaf1a28044 (diff) |
Update so that JavaImplementationProvider works with both OASIS and Tuscany ComponentContext types
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1213621 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r-- | sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProvider.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProvider.java b/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProvider.java index 215a796cc1..03916909a5 100644 --- a/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProvider.java +++ b/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProvider.java @@ -96,7 +96,7 @@ public class JavaImplementationProvider implements ScopedImplementationProvider, (ObjectFactory<?>)componentContextProvider.getInstanceFactoryProvider().getFactories().get(resource.getElement()); if (objectFactory == null) { Class<?> type = resource.getElement().getType(); - if (ComponentContext.class.equals(type)) { + if (ComponentContext.class.isAssignableFrom(type)) { objectFactory = new JavaComponentContextFactory(componentContextProvider); } else if (RequestContext.class.equals(type)) { objectFactory = new RequestContextObjectFactory(requestContextFactory, componentContextProvider.getComponent()); |