org.sonatype.gshell.branding
Class BrandingSupport
java.lang.Object
org.sonatype.gshell.branding.BrandingSupport
- All Implemented Interfaces:
- Branding
- Direct Known Subclasses:
- BrandingImpl
public class BrandingSupport
- extends Object
- implements Branding
Support for Branding implementations.
- Since:
- 2.0
- Author:
- Jason Dillon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrandingSupport
public BrandingSupport(Properties props)
BrandingSupport
public BrandingSupport()
getMessages
protected MessageSource getMessages()
getProperties
protected Properties getProperties()
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in interface Branding
getProgramName
public String getProgramName()
- Specified by:
getProgramName in interface Branding
getScriptExtension
public String getScriptExtension()
- Specified by:
getScriptExtension in interface Branding
getVersion
public String getVersion()
- Specified by:
getVersion in interface Branding
line
protected String line()
getWelcomeMessage
public String getWelcomeMessage()
- Specified by:
getWelcomeMessage in interface Branding
getGoodbyeMessage
public String getGoodbyeMessage()
- Specified by:
getGoodbyeMessage in interface Branding
getPrompt
public String getPrompt()
- Specified by:
getPrompt in interface Branding
getProfileScriptName
public String getProfileScriptName()
- Specified by:
getProfileScriptName in interface Branding
getInteractiveScriptName
public String getInteractiveScriptName()
- Specified by:
getInteractiveScriptName in interface Branding
getHistoryFileName
public String getHistoryFileName()
- Specified by:
getHistoryFileName in interface Branding
getPreferencesBasePath
public String getPreferencesBasePath()
- Specified by:
getPreferencesBasePath in interface Branding
resolveFile
protected File resolveFile(File file)
resolveFile
protected File resolveFile(String fileName)
getShellHomeDir
public File getShellHomeDir()
- Specified by:
getShellHomeDir in interface Branding
getShellContextDir
public File getShellContextDir()
- Specified by:
getShellContextDir in interface Branding
getUserHomeDir
public File getUserHomeDir()
- Specified by:
getUserHomeDir in interface Branding
getUserContextDir
public File getUserContextDir()
- Specified by:
getUserContextDir in interface Branding
getLicense
public License getLicense()
- Specified by:
getLicense in interface Branding
customize
public void customize(Shell shell)
throws Exception
- Specified by:
customize in interface Branding
- Throws:
Exception
Copyright © 2008-2011 Sonatype. All Rights Reserved.