org.springframework.shell.plugin.BannerProvider Java Examples

The following examples show how to use org.springframework.shell.plugin.BannerProvider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LensJLineShellComponent.java    From zeppelin with Apache License 2.0 5 votes vote down vote up
/**
 * Get Banner and Welcome Message from provider. The provider has highest order 
 * {@link org.springframework.core.Ordered#getOrder()} will win.
 *
 * @return BannerText[0]: Banner
 *         BannerText[1]: Welcome Message
 *         BannerText[2]: Version
 *         BannerText[3]: Product Name
 */
private String[] getBannerText() {
  String[] bannerText = new String[4];
  BannerProvider provider = PluginUtils.getHighestPriorityProvider(this.applicationContext,
          BannerProvider.class);
  bannerText[0] = provider.getBanner();
  bannerText[1] = provider.getWelcomeMessage();
  bannerText[2] = provider.getVersion();
  bannerText[3] = provider.getProviderName();
  return bannerText;
}