org.apache.tuscany.sca.runtime
Class Launcher

java.lang.Object
  extended by org.apache.tuscany.sca.runtime.Launcher

public class Launcher
extends java.lang.Object

A Launcher using a multiple nodes part as part of a domain


Field Summary
protected  java.lang.String cp
           
protected  java.lang.String domainName
           
protected  java.io.File repository
           
protected  boolean started
           
 
Constructor Summary
Launcher(java.io.File repository)
           
Launcher(java.io.File repository, java.lang.String cp)
           
 
Method Summary
protected  boolean containsCompositeFile(java.io.File repository)
          Tests if the directory or any sub-directories contains a .composite file
protected  java.net.URL[] getJARsInFolder(java.io.File repository)
           
protected  java.net.URL[] getSubFolders(java.io.File repositoryDir)
           
protected  void initFromPropertyFile()
          Creates a new SCA Node unless running as a standalone node in which case just a single node is used to run for all contributions
protected  boolean isExplodedContribution(java.io.File folder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domainName

protected java.lang.String domainName

repository

protected java.io.File repository

started

protected boolean started

cp

protected java.lang.String cp
Constructor Detail

Launcher

public Launcher(java.io.File repository)

Launcher

public Launcher(java.io.File repository,
                java.lang.String cp)
Method Detail

isExplodedContribution

protected boolean isExplodedContribution(java.io.File folder)

getJARsInFolder

protected java.net.URL[] getJARsInFolder(java.io.File repository)

getSubFolders

protected java.net.URL[] getSubFolders(java.io.File repositoryDir)

containsCompositeFile

protected boolean containsCompositeFile(java.io.File repository)
Tests if the directory or any sub-directories contains a .composite file


initFromPropertyFile

protected void initFromPropertyFile()
Creates a new SCA Node unless running as a standalone node in which case just a single node is used to run for all contributions