You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2008/02/13 09:49:15 UTC
svn commit: r627311 -
/incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java
Author: antelder
Date: Wed Feb 13 00:49:14 2008
New Revision: 627311
URL: http://svn.apache.org/viewvc?rev=627311&view=rev
Log:
Refactor initilization into seperate init method
Modified:
incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java
Modified: incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java?rev=627311&r1=627310&r2=627311&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java (original)
+++ incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/DefaultSCADomain.java Wed Feb 13 00:49:14 2008
@@ -81,6 +81,10 @@
private Map<String, Component> components = new HashMap<String, Component>();
private ReallySmallRuntime runtime;
private ComponentManager componentManager;
+ private ClassLoader runtimeClassLoader;
+ private ClassLoader applicationClassLoader;
+ private String domainURI;
+ private String contributionLocation;
/**
* Constructs a new domain facade.
@@ -96,7 +100,17 @@
String... composites) {
this.uri = domainURI;
this.composites = composites;
+ this.runtimeClassLoader = runtimeClassLoader;
+ this.applicationClassLoader = applicationClassLoader;
+ this.domainURI = domainURI;
+ this.contributionLocation = contributionLocation;
+ this.composites = composites;
+ init();
+
+ }
+
+ protected void init() {
runtime = new ReallySmallRuntime(runtimeClassLoader);
try {
runtime.start();
@@ -240,7 +254,6 @@
// e.printStackTrace();
// }
// }
-
}
protected void addContribution(ContributionService contributionService, URL contributionURL) throws IOException {
@@ -307,7 +320,7 @@
* @return
* @throws MalformedURLException
*/
- private URL getContributionLocation(ClassLoader classLoader, String contributionPath, String[] composites)
+ protected URL getContributionLocation(ClassLoader classLoader, String contributionPath, String[] composites)
throws MalformedURLException {
if (contributionPath != null && contributionPath.length() > 0) {
//encode spaces as they would cause URISyntaxException
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org