You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by me...@apache.org on 2006/12/27 00:47:57 UTC
svn commit: r490403 -
/incubator/tuscany/java/sca/runtime/standalone/standalone-host/src/main/java/org/apache/tuscany/runtime/standalone/host/StandaloneRuntimeImpl.java
Author: meerajk
Date: Tue Dec 26 15:47:57 2006
New Revision: 490403
URL: http://svn.apache.org/viewvc?view=rev&rev=490403
Log:
Disable app deployment if app scdl is not set.
Modified:
incubator/tuscany/java/sca/runtime/standalone/standalone-host/src/main/java/org/apache/tuscany/runtime/standalone/host/StandaloneRuntimeImpl.java
Modified: incubator/tuscany/java/sca/runtime/standalone/standalone-host/src/main/java/org/apache/tuscany/runtime/standalone/host/StandaloneRuntimeImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/standalone/standalone-host/src/main/java/org/apache/tuscany/runtime/standalone/host/StandaloneRuntimeImpl.java?view=diff&rev=490403&r1=490402&r2=490403
==============================================================================
--- incubator/tuscany/java/sca/runtime/standalone/standalone-host/src/main/java/org/apache/tuscany/runtime/standalone/host/StandaloneRuntimeImpl.java (original)
+++ incubator/tuscany/java/sca/runtime/standalone/standalone-host/src/main/java/org/apache/tuscany/runtime/standalone/host/StandaloneRuntimeImpl.java Tue Dec 26 15:47:57 2006
@@ -71,8 +71,8 @@
try {
systemComponent.registerJavaObject(RuntimeInfo.COMPONENT_NAME, RuntimeInfo.class, runtimeInfo);
systemComponent.registerJavaObject(StandaloneRuntimeInfo.COMPONENT_NAME,
- StandaloneRuntimeInfo.class,
- (StandaloneRuntimeInfo) runtimeInfo);
+ StandaloneRuntimeInfo.class,
+ (StandaloneRuntimeInfo)runtimeInfo);
// register the monitor factory provided by the host
systemComponent.registerJavaObject("MonitorFactory", MonitorFactory.class, mf);
@@ -85,11 +85,12 @@
try {
// deploy the system scdl
Deployer deployer = bootstrapper.createDeployer();
- tuscanySystem = deploySystemScdl(deployer,
- systemComponent,
- ComponentNames.TUSCANY_SYSTEM,
- getSystemScdl(),
- bootClassLoader);
+ tuscanySystem =
+ deploySystemScdl(deployer,
+ systemComponent,
+ ComponentNames.TUSCANY_SYSTEM,
+ getSystemScdl(),
+ bootClassLoader);
tuscanySystem.start();
// switch to the system deployer
@@ -97,20 +98,23 @@
if (!(deployerComponent instanceof AtomicComponent)) {
throw new InitializationException("Deployer must be an atomic component");
}
- deployer = (Deployer) ((AtomicComponent) deployerComponent).getTargetInstance();
+ deployer = (Deployer)((AtomicComponent)deployerComponent).getTargetInstance();
SCAObject wireServiceComponent = tuscanySystem.getSystemChild(ComponentNames.TUSCANY_WIRE_SERVICE);
if (!(wireServiceComponent instanceof AtomicComponent)) {
throw new InitializationException("WireService must be an atomic component");
}
- WireService wireService = (WireService) ((AtomicComponent) wireServiceComponent).getTargetInstance();
+ WireService wireService = (WireService)((AtomicComponent)wireServiceComponent).getTargetInstance();
- application = deployApplicationScdl(deployer,
- runtime.getRootComponent(),
- getApplicationName(),
- getApplicationScdl(),
- getApplicationClassLoader());
- application.start();
+ if (getApplicationScdl() != null) {
+ application =
+ deployApplicationScdl(deployer,
+ runtime.getRootComponent(),
+ getApplicationName(),
+ getApplicationScdl(),
+ getApplicationClassLoader());
+ application.start();
+ }
context = new CompositeContextImpl(application, wireService);
} catch (LoaderException ex) {
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org