public abstract class ProjectLauncher extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ProjectLauncher.NotificationListener |
static class |
ProjectLauncher.NotificationType |
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ProjectLauncher(Project project) |
Modifier and Type | Method and Description |
---|---|
boolean |
addActivator(String e) |
protected void |
addClasspath(Collection<Container> path) |
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 |
addRunProgramArgs(String arg) |
void |
addRunVM(String arg) |
void |
cancel() |
void |
cleanup()
Is called after the process exists.
|
void |
clear() |
protected void |
error(String message,
Object... args) |
Jar |
executable()
Create a self executable.
|
Collection<String> |
getActivators() |
Collection<String> |
getArguments()
Deprecated.
|
Collection<String> |
getClasspath() |
File |
getCwd() |
List<String> |
getErrors() |
abstract String |
getMainTypeName() |
Set<ProjectLauncher.NotificationListener> |
getNotificationListeners() |
Project |
getProject() |
Collection<String> |
getRunBundles() |
Map<String,String> |
getRunEnv() |
int |
getRunFramework()
Either NONE or SERVICES to indicate how the remote end launches.
|
String |
getRunJdb() |
List<String> |
getRunpath() |
Collection<String> |
getRunProgramArgs() |
Map<String,String> |
getRunProperties() |
Collection<String> |
getRunVM() |
File |
getStorageDir() |
String |
getSystemCapabilities() |
Map<String,? extends Map<String,String>> |
getSystemPackages() |
long |
getTimeout() |
boolean |
getTrace() |
List<String> |
getWarnings() |
protected int |
invoke(Class<?> main,
String[] args) |
boolean |
isKeep() |
int |
launch() |
abstract void |
prepare()
Should be called when all the changes to the launchers are set.
|
void |
registerForNotifications(ProjectLauncher.NotificationListener listener) |
protected void |
reportResult(int result) |
void |
setCwd(File cwd) |
void |
setKeep(boolean keep) |
void |
setRunFramework(int n) |
void |
setTimeout(long timeout,
TimeUnit unit) |
void |
setTrace(boolean level) |
int |
start(ClassLoader parent) |
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) |
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
protected void updateFromProject() throws Exception
Exception
protected void addClasspath(Collection<Container> path) throws Exception
Exception
public void addRunBundle(String f)
public Collection<String> getRunBundles()
public void addRunVM(String arg)
public void addRunProgramArgs(String arg)
public Collection<String> getClasspath()
public Collection<String> getRunVM()
@Deprecated public Collection<String> getArguments()
public Collection<String> getRunProgramArgs()
public File getStorageDir()
public abstract String getMainTypeName()
public int start(ClassLoader parent) throws Exception
Exception
public void cleanup()
protected void reportResult(int result)
public void setTimeout(long timeout, TimeUnit unit)
public long getTimeout()
public void cancel()
public String getSystemCapabilities()
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 jarsException
public void clear()
public File getCwd()
public void setCwd(File cwd)
public String getRunJdb()
public void registerForNotifications(ProjectLauncher.NotificationListener listener)
public Set<ProjectLauncher.NotificationListener> getNotificationListeners()
Copyright © 2015 aQute SARL. All rights reserved.