@Configuration
public class JCommanderAutoConfiguration
extends java.lang.Object
JCommander
to parse CLI arguments of the Agent.Constructor and Description |
---|
JCommanderAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
com.netflix.genie.agent.cli.ArgumentParser |
argumentParser(com.beust.jcommander.JCommander jCommander,
com.netflix.genie.agent.cli.CommandFactory commandFactory,
com.netflix.genie.agent.cli.MainCommandArguments mainCommandArguments)
Provide an argument parser bean.
|
com.netflix.genie.agent.cli.CommandFactory |
commandFactory(java.util.List<com.netflix.genie.agent.cli.AgentCommandArguments> agentCommandArguments,
org.springframework.context.ApplicationContext applicationContext)
Provide a command factory bean.
|
com.netflix.genie.agent.cli.GlobalAgentArguments |
globalAgentArguments()
Provide a
GlobalAgentArguments bean. |
com.beust.jcommander.JCommander |
jCommander(com.netflix.genie.agent.cli.GlobalAgentArguments globalAgentArguments,
java.util.List<com.netflix.genie.agent.cli.AgentCommandArguments> agentCommandArguments)
Provide a
JCommander bean. |
@Bean public com.netflix.genie.agent.cli.GlobalAgentArguments globalAgentArguments()
GlobalAgentArguments
bean.GlobalAgentArguments
instance@Bean public com.beust.jcommander.JCommander jCommander(com.netflix.genie.agent.cli.GlobalAgentArguments globalAgentArguments, java.util.List<com.netflix.genie.agent.cli.AgentCommandArguments> agentCommandArguments)
JCommander
bean.globalAgentArguments
- The global command arguments to useagentCommandArguments
- An command argument beans in the environment that should also be used in addition
to the global command argumentsJCommander
instance@Bean public com.netflix.genie.agent.cli.CommandFactory commandFactory(java.util.List<com.netflix.genie.agent.cli.AgentCommandArguments> agentCommandArguments, org.springframework.context.ApplicationContext applicationContext)
agentCommandArguments
- Any agent command argument implementations that are in the application contextapplicationContext
- The Spring application contextCommandFactory
instance@Bean public com.netflix.genie.agent.cli.ArgumentParser argumentParser(com.beust.jcommander.JCommander jCommander, com.netflix.genie.agent.cli.CommandFactory commandFactory, com.netflix.genie.agent.cli.MainCommandArguments mainCommandArguments)
jCommander
- The JCommander instance to usecommandFactory
- The command factory instance to usemainCommandArguments
- The container of main arguments for the commandArgumentParser
instance