asia.redact.bracket.properties.mgmt
Class ServerLocaleBuilder

java.lang.Object
  extended by asia.redact.bracket.properties.mgmt.ServerLocaleBuilder
Direct Known Subclasses:
HostnameServerLocaleBuilder

public abstract class ServerLocaleBuilder
extends Object

Abstract class which may be useful as a base for builders to get your Server Locale. Trivial.

Author:
Dave

Constructor Summary
ServerLocaleBuilder()
           
 
Method Summary
abstract  ServerLocale findServerLocale()
           
 String fromInet()
          Helper method - get the hostname from the local machine by looking at the InetAddress.getLocalHost()
 String fromSystemProperty()
          Helper method, set the host name as a System property called "hostname" to use this
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerLocaleBuilder

public ServerLocaleBuilder()
Method Detail

findServerLocale

public abstract ServerLocale findServerLocale()

fromInet

public String fromInet()
Helper method - get the hostname from the local machine by looking at the InetAddress.getLocalHost()

Returns:
the hostname
Throws:
RuntimeException - if fails

fromSystemProperty

public String fromSystemProperty()
Helper method, set the host name as a System property called "hostname" to use this

Returns:


Copyright © 2011-2013 David R. Smith. All Rights Reserved.