org.rundeck.api
Class OptionsBuilder

java.lang.Object
  extended by org.rundeck.api.OptionsBuilder

public class OptionsBuilder
extends Object

Builder for job options

Author:
Vincent Behar

Constructor Summary
OptionsBuilder()
          Build a new instance.
 
Method Summary
 OptionsBuilder addOption(Object key, Object value)
          Add an option
 Properties toProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionsBuilder

public OptionsBuilder()
Build a new instance. Use addOption(Object, Object) to add some options, and then toProperties() when you're done !

Method Detail

addOption

public OptionsBuilder addOption(Object key,
                                Object value)
Add an option

Parameters:
key - of the option
value - of the option
Returns:
this, for method chaining

toProperties

public Properties toProperties()
Returns:
a new Properties instance


Copyright © 2011. All Rights Reserved.