org.springframework.shell.plugin.HistoryFileNameProvider Java Examples
The following examples show how to use
org.springframework.shell.plugin.HistoryFileNameProvider.
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 |
/** * get history file name from provider. The provider has highest order * {@link org.springframework.core.Ordered#getOrder()} will win. * * @return history file name */ protected String getHistoryFileName() { HistoryFileNameProvider historyFileNameProvider = PluginUtils.getHighestPriorityProvider( this.applicationContext, HistoryFileNameProvider.class); String providerHistoryFileName = historyFileNameProvider.getHistoryFileName(); if (providerHistoryFileName != null) { return providerHistoryFileName; } else { return historyFileName; } }
Example #2
Source File: ShellConfiguration.java From ambari-shell with Apache License 2.0 | 4 votes |
@Bean HistoryFileNameProvider defaultHistoryFileNameProvider() { return new DefaultHistoryFileNameProvider(); }