|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neovera.jdiablo.BuilderFactory
public class BuilderFactory
This class allows you to start the Diablo CLI "building" process. The BuilderFactory creates a TargetBuilder. The TargetBuilder accepts the Launchable target to execute and returns an EnvironmentBuilder. The EnvironmentBuilder provides hooks to specialize Environments (such as Spring) and then provides a handle to the Executor for starting the execution.
| Constructor Summary | |
|---|---|
BuilderFactory()
|
|
| Method Summary | ||
|---|---|---|
|
add(Class<E> clz,
Specialization<E> specialization)
Use this method to add specializations for a particular environment as part of the environment builder. |
|
TargetBuilder |
create()
Creates a TargetBuilder without any passed in command-line arguments. |
|
TargetBuilder |
create(String[] args)
Factory method to create a target builder passing in the command line arguments. |
|
Map<Class<? extends Environment>,Environment> |
getSpecializations()
Ideally this method would be "module" scoped. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuilderFactory()
| Method Detail |
|---|
public TargetBuilder create(String[] args)
args - Command line arguments from main() as-is.
public TargetBuilder create()
public <E extends Environment> void add(Class<E> clz,
Specialization<E> specialization)
E - Environment typeclz - Environment's classspecialization - Specialization implementation for the environment.public Map<Class<? extends Environment>,Environment> getSpecializations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||