|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectaQute.bnd.build.ProjectLauncher
public abstract class ProjectLauncher
A Project Launcher is a base class to be extended by launchers. Launchers are JARs that launch a framework and install a number of bundles and then run the framework. A launcher jar must specify a Launcher-Class manifest header. This class is instantiated and cast to a LauncherPlugin. This plug in is then asked to provide a ProjectLauncher. This project launcher is then used by the project to run the code. Launchers must extend this class.
Field Summary | |
---|---|
static int |
ACTIVATOR_ERROR
|
static int |
CANCELED
|
static int |
CUSTOM_LAUNCHER
|
static int |
DUPLICATE_BUNDLE
|
static String |
EMBEDDED_ACTIVATOR
|
static int |
ERROR
|
static int |
NONE
|
static int |
OK
|
static int |
RESOLVE_ERROR
|
static int |
SERVICES
|
static int |
TIMEDOUT
|
static int |
UPDATE_NEEDED
|
static int |
WARNING
|
Constructor Summary | |
---|---|
ProjectLauncher(Project project)
|
Method Summary | |
---|---|
boolean |
addActivator(String e)
|
void |
addClasspath(Container container)
|
void |
addDefault(String defaultSpec)
Add the specification for a set of bundles the runpath if it does not already is included. |
void |
addRunBundle(String f)
|
void |
addRunVM(String arg)
|
void |
cancel()
|
void |
clear()
|
protected void |
error(String message,
Object... args)
|
Jar |
executable()
Create a self executable. |
Collection<String> |
getActivators()
|
Collection<String> |
getArguments()
|
Collection<String> |
getClasspath()
|
List<String> |
getErrors()
|
abstract String |
getMainTypeName()
|
Project |
getProject()
|
Collection<String> |
getRunBundles()
|
int |
getRunFramework()
Either NONE or SERVICES to indicate how the remote end launches. |
Collection<String> |
getRunpath()
|
Map<String,String> |
getRunProperties()
|
Collection<String> |
getRunVM()
|
File |
getStorageDir()
|
Map<String,Map<String,String>> |
getSystemPackages()
|
long |
getTimeout()
|
boolean |
getTrace()
|
List<String> |
getWarnings()
|
boolean |
isKeep()
|
int |
launch()
|
abstract void |
prepare()
Should be called when all the changes to the launchers are set. |
protected void |
reportResult(int result)
|
void |
setKeep(boolean keep)
|
void |
setRunFramework(int n)
|
void |
setTimeout(long timeout,
TimeUnit unit)
|
void |
setTrace(boolean level)
|
abstract void |
update()
|
protected void |
updateFromProject()
Collect all the aspect from the project and set the local fields from them. |
protected void |
warning(String message,
Object... args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SERVICES
public static final int NONE
public static final int OK
public static final int WARNING
public static final int ERROR
public static final int TIMEDOUT
public static final int UPDATE_NEEDED
public static final int CANCELED
public static final int DUPLICATE_BUNDLE
public static final int RESOLVE_ERROR
public static final int ACTIVATOR_ERROR
public static final int CUSTOM_LAUNCHER
public static final String EMBEDDED_ACTIVATOR
Constructor Detail |
---|
public ProjectLauncher(Project project) throws Exception
Exception
Method Detail |
---|
protected void updateFromProject() throws Exception
Exception
public void addClasspath(Container container) throws Exception
Exception
public void addRunBundle(String f)
public Collection<String> getRunBundles()
public void addRunVM(String arg)
public Collection<String> getRunpath()
public Collection<String> getClasspath()
public Collection<String> getRunVM()
public Collection<String> getArguments()
public Map<String,String> getRunProperties()
public File getStorageDir()
public abstract String getMainTypeName()
public abstract void update() throws Exception
Exception
public int launch() throws Exception
Exception
protected void reportResult(int result)
public void setTimeout(long timeout, TimeUnit unit)
public long getTimeout()
public void cancel()
public Map<String,Map<String,String>> getSystemPackages()
public void setKeep(boolean keep)
public boolean isKeep()
public void setTrace(boolean level)
public boolean getTrace()
public abstract void prepare() throws Exception
Exception
public Project getProject()
public boolean addActivator(String e)
public Collection<String> getActivators()
public int getRunFramework()
public void setRunFramework(int n)
public void addDefault(String defaultSpec) throws Exception
defaultSpec
- The default spec for default jars
Exception
public Jar executable() throws Exception
Exception
public void clear()
public List<String> getErrors()
public List<String> getWarnings()
protected void error(String message, Object... args)
protected void warning(String message, Object... args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |