diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-09 19:20:26 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-09 19:20:26 +0000 |
commit | 7a22e19de169d79b2e5ecc93b229631b8c1200f5 (patch) | |
tree | d07474d341766fd42845c7ce3f1bf0d6501c23e8 /java/sca/modules/core/src | |
parent | dca241182a13ccc63262ad50b499cdbb465f7bef (diff) |
Fix the access violation to EndpointReferenceImpl
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@724840 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/core/src')
-rw-r--r-- | java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeAssemblyFactory.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeAssemblyFactory.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeAssemblyFactory.java index a60a57e5bc..8d8c9d10e8 100644 --- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeAssemblyFactory.java +++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeAssemblyFactory.java @@ -20,13 +20,21 @@ package org.apache.tuscany.sca.core.assembly; import org.apache.tuscany.sca.assembly.AssemblyFactory; +import org.apache.tuscany.sca.assembly.Binding; import org.apache.tuscany.sca.assembly.Component; import org.apache.tuscany.sca.assembly.ComponentReference; import org.apache.tuscany.sca.assembly.ComponentService; +import org.apache.tuscany.sca.assembly.Contract; import org.apache.tuscany.sca.assembly.DefaultAssemblyFactory; +import org.apache.tuscany.sca.core.assembly.impl.EndpointReferenceImpl; +import org.apache.tuscany.sca.core.assembly.impl.ReferenceParametersImpl; import org.apache.tuscany.sca.core.assembly.impl.RuntimeComponentImpl; import org.apache.tuscany.sca.core.assembly.impl.RuntimeComponentReferenceImpl; import org.apache.tuscany.sca.core.assembly.impl.RuntimeComponentServiceImpl; +import org.apache.tuscany.sca.interfacedef.InterfaceContract; +import org.apache.tuscany.sca.runtime.EndpointReference; +import org.apache.tuscany.sca.runtime.ReferenceParameters; +import org.apache.tuscany.sca.runtime.RuntimeComponent; /** * The runtime version of assembly factory @@ -52,5 +60,21 @@ public class RuntimeAssemblyFactory extends DefaultAssemblyFactory implements As public ComponentService createComponentService() { return new RuntimeComponentServiceImpl(); } + + // FIXME: [rfeng] We need to find a more consistent story to deal with EPR, EP and CallableReference + public EndpointReference createEndpointReference(String uri) { + return new EndpointReferenceImpl(uri); + } + + public EndpointReference createEndpointReference(RuntimeComponent component, + Contract contract, + Binding binding, + InterfaceContract interfaceContract) { + return new EndpointReferenceImpl(component, contract, binding, interfaceContract); + } + + public ReferenceParameters createReferenceParameters() { + return new ReferenceParametersImpl(); + } } |