|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neovera.jdiablo.internal.BuilderImpl
public class BuilderImpl
| Constructor Summary | |
|---|---|
BuilderImpl(BuilderFactory builderFactory)
|
|
BuilderImpl(String[] args,
BuilderFactory builderFactory)
|
|
| Method Summary | ||
|---|---|---|
Executor |
build()
|
|
ExecutionState |
execute()
Execute the launchable catching all RuntimeExceptions (logged). |
|
ExecutionState |
executeNoCatch()
Execute the launchable without catching or logging RuntimeExceptions. |
|
String[] |
getArgs()
|
|
TargetBuilder |
getChainedExecutor()
|
|
|
getEnvironment(Class<E> clz)
|
|
void |
showHelp()
Prints out command line help. |
|
EnvironmentBuilder |
withNewInstanceOf(Class<? extends Environment> clz)
Use this when chaining Launchables (calling one Launchable from another) where you want a new (non-specialized or uninitialized) instance of an Environment to be used in the execution. |
|
|
withSpecialization(Class<E> clz,
Specialization<E> specialization)
Allows for programmatic specialization (setting of properties) when launching. |
|
|
withTarget(Class<L> launchableClass)
Tell the builder to build a launchable of a particular derived type. |
|
|
withTarget(Class<L> launchableClass,
Specialization<L> specialization)
Tell the builder to build a launchable of a particular type with given specialization. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuilderImpl(BuilderFactory builderFactory)
public BuilderImpl(String[] args,
BuilderFactory builderFactory)
| Method Detail |
|---|
public <E extends Environment> E getEnvironment(Class<E> clz)
getEnvironment in interface ExecutionHandlerE - Environment typeclz - Class of the environment
public String[] getArgs()
public <L extends Launchable> EnvironmentBuilder withTarget(Class<L> launchableClass)
TargetBuilder
withTarget in interface TargetBuilderL - Launchable typelaunchableClass - Launchable class
public <L extends Launchable> EnvironmentBuilder withTarget(Class<L> launchableClass,
Specialization<L> specialization)
TargetBuilder
withTarget in interface TargetBuilderL - Launchable typelaunchableClass - Launchable classspecialization - The specialization to apply to the launchable type.
public EnvironmentBuilder withNewInstanceOf(Class<? extends Environment> clz)
EnvironmentBuilder
withNewInstanceOf in interface EnvironmentBuilderclz - Environment class
public <E extends Environment> EnvironmentBuilder withSpecialization(Class<E> clz,
Specialization<E> specialization)
EnvironmentBuilder
withSpecialization in interface EnvironmentBuilderpublic Executor build()
build in interface EnvironmentBuilderpublic ExecutionState execute()
Executor
execute in interface Executorpublic ExecutionState executeNoCatch()
Executor
executeNoCatch in interface Executorpublic TargetBuilder getChainedExecutor()
getChainedExecutor in interface ExecutionHandlerpublic void showHelp()
showHelp in interface HelpProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||