summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/core
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-06-08 22:29:21 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-06-08 22:29:21 +0000
commit5c2a1fa0635c491ab13c9e5b141c1b1ebbfd7c7c (patch)
tree5058dc046caa71ea45b69d34536700b5ed004b7d /java/sca/modules/core
parent95912ec88ac1eb4f6f00c0fa8c76c5df8838fe3c (diff)
Make ExtensionPointRegistry available to AssemblyFactory so that it can create Endpoint2/EndpointReference2 with the registry for looking up a processor to provide EP/EPR XML marshaling and unmarshaling
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@782818 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/core')
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/RuntimeAssemblyFactory.java17
1 files changed, 9 insertions, 8 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 8d8c9d10e8..547c8f6750 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
@@ -6,15 +6,15 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
- * under the License.
+ * under the License.
*/
package org.apache.tuscany.sca.core.assembly;
@@ -26,6 +26,7 @@ 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.ExtensionPointRegistry;
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;
@@ -41,9 +42,9 @@ import org.apache.tuscany.sca.runtime.RuntimeComponent;
* @version $Rev$ $Date$
*/
public class RuntimeAssemblyFactory extends DefaultAssemblyFactory implements AssemblyFactory {
-
- public RuntimeAssemblyFactory() {
- super();
+
+ public RuntimeAssemblyFactory(ExtensionPointRegistry registry) {
+ super(registry);
}
@Override
@@ -60,7 +61,7 @@ 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);
@@ -72,7 +73,7 @@ public class RuntimeAssemblyFactory extends DefaultAssemblyFactory implements As
InterfaceContract interfaceContract) {
return new EndpointReferenceImpl(component, contract, binding, interfaceContract);
}
-
+
public ReferenceParameters createReferenceParameters() {
return new ReferenceParametersImpl();
}