public final class StartupExtender extends Object
StartupExtenderImplementation
Modifier and Type | Class and Description |
---|---|
static class |
StartupExtender.StartMode
Class representing the startup mode of the process.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getArguments()
The list of arguments.
|
String |
getDescription()
Returns the description of the extender.
|
static List<StartupExtender> |
getExtenders(Lookup context,
StartupExtender.StartMode mode)
Returns all registered
StartupExtender s for the given start mode. |
List<String> |
getRawArguments()
List of arguments.
|
@NonNull public static List<StartupExtender> getExtenders(@NonNull Lookup context, @NonNull StartupExtender.StartMode mode)
StartupExtender
s for the given start mode.
The contents of the context
parameter will depend on the kind of
execution. For a simple Java SE program being run in the Java launcher,
a org.netbeans.api.project.Project
can be expected; where available,
a org.netbeans.api.java.platform.JavaPlatform
will be present as well.
For a Java EE program being run in an application server,
a org.netbeans.api.server.ServerInstance
can be expected in the
context. Other kinds of API objects may be present according to contracts
not specified here.
This method should not be called unless and until the program is really about to be run, i.e. all known preconditions have been satisfied.
context
- the lookup providing the contract between client
and providermode
- the startup mode the client is going to useStartupExtenderImplementation
@NonNull public String getDescription()
@NonNull public List<String> getArguments()
public List<String> getRawArguments()