public class BaseLensCommand extends Object implements org.springframework.shell.core.ExecutionProcessor
| Modifier and Type | Field and Description | 
|---|---|
| static String | DATE_FMT | 
| static ThreadLocal<DateFormat> | DATE_PARSER | 
| Constructor and Description | 
|---|
| BaseLensCommand()Instantiates a new base lens command. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterReturningInvocation(org.springframework.shell.event.ParseResult parseResult,
                        Object o) | 
| void | afterThrowingInvocation(org.springframework.shell.event.ParseResult parseResult,
                       Throwable throwable) | 
| org.springframework.shell.event.ParseResult | beforeInvocation(org.springframework.shell.event.ParseResult parseResult)This Code piece allows lens cli to be able to parse list arguments. | 
| static String | formatDate(Date dt) | 
| String | formatJson(String json)Pretty printing JSON object into CLI String. | 
| LensClient | getClient() | 
| static LensClientSingletonWrapper | getClientWrapper() | 
| String | getValidPath(String path,
            boolean shouldBeDirectory,
            boolean shouldExist) | 
| void | setClient(LensClient client) | 
public static final String DATE_FMT
public static final ThreadLocal<DateFormat> DATE_PARSER
public void setClient(LensClient client)
public LensClient getClient()
public static LensClientSingletonWrapper getClientWrapper()
public String formatJson(String json)
json - to be formattedpublic String getValidPath(String path, boolean shouldBeDirectory, boolean shouldExist)
public org.springframework.shell.event.ParseResult beforeInvocation(org.springframework.shell.event.ParseResult parseResult)
beforeInvocation in interface org.springframework.shell.core.ExecutionProcessorparseResult - public void afterReturningInvocation(org.springframework.shell.event.ParseResult parseResult,
                            Object o)
afterReturningInvocation in interface org.springframework.shell.core.ExecutionProcessorpublic void afterThrowingInvocation(org.springframework.shell.event.ParseResult parseResult,
                           Throwable throwable)
afterThrowingInvocation in interface org.springframework.shell.core.ExecutionProcessorCopyright © 2014–2015 Apache Software Foundation. All rights reserved.