org.rhq.enterprise.communications.util.prefs
Class LocalInetAddressNoDefaultSetupInstruction

java.lang.Object
  extended by org.rhq.enterprise.communications.util.prefs.SetupInstruction
      extended by org.rhq.enterprise.communications.util.prefs.LocalInetAddressNoDefaultSetupInstruction

public class LocalInetAddressNoDefaultSetupInstruction
extends SetupInstruction

Same as LocalInetAddressSetupInstruction, but it does not predefine a default. Allows the user to more easily tell us that he wants to keep the value undefined and rely on the system default.

Author:
John Mazzitelli

Constructor Summary
LocalInetAddressNoDefaultSetupInstruction(String preference_name, String prompt_message, String help_message)
          Creates a new LocalInetAddressNoDefaultSetupInstruction object.
 
Method Summary
 void preProcess()
          Sets the default as an IP address for this local host.
 
Methods inherited from class org.rhq.enterprise.communications.util.prefs.SetupInstruction
getDefaultValue, getHelpMessage, getPreferenceName, getPreferences, getPromptMessage, getValidityChecker, isUsingNoEchoPrompt, postProcess, setDefaultValue, setHelpMessage, setPreferences, setPromptMessage, setUsingNoEchoPrompt, setValidityChecker, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalInetAddressNoDefaultSetupInstruction

public LocalInetAddressNoDefaultSetupInstruction(String preference_name,
                                                 String prompt_message,
                                                 String help_message)
                                          throws IllegalArgumentException
Creates a new LocalInetAddressNoDefaultSetupInstruction object.

Parameters:
preference_name -
prompt_message -
help_message -
Throws:
IllegalArgumentException
See Also:
SetupInstruction.SetupInstruction(String, String, SetupValidityChecker, String, String, boolean)
Method Detail

preProcess

public void preProcess()
Sets the default as an IP address for this local host. We try not to set it to a loopback device.

Overrides:
preProcess in class SetupInstruction
See Also:
SetupInstruction.preProcess()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.