public static abstract class
Application.AbstractApplicationHelper
extends Object
Helper class to make our class more testable: factory and util methods
Public Constructor Summary
Public Method Summary
abstract C |
createContextBuilderInstance()
Helper method to create an instance of
ERROR(/ConnectorContextImpl.Builder) |
CredentialFactory |
createCredentialFactory()
Helper method to create an instance of
LocalFileCredentialFactory |
abstract S |
createSchedulerBuilderInstance()
Helper method to create an instance of
ConnectorScheduler.Builder |
Thread |
createShutdownHookThread(Runnable task)
Helper method for creating
Thread to be register as ShutdownHook |
ExceptionHandler |
getDefaultExceptionHandler()
helper method to get default instance of
ExceptionHandler |
Runtime |
getRuntimeInstance()
Helper method to get instance of current
Runtime |
Inherited Method Summary
Public Constructors
public Application.AbstractApplicationHelper ()
Public Methods
public abstract C createContextBuilderInstance ()
Helper method to create an instance of ERROR(/ConnectorContextImpl.Builder)
Returns
- instance of
ERROR(/ConnectorContextImpl.Builder)
public CredentialFactory createCredentialFactory ()
Helper method to create an instance of LocalFileCredentialFactory
Returns
- instance of
LocalFileCredentialFactory
public abstract S createSchedulerBuilderInstance ()
Helper method to create an instance of ConnectorScheduler.Builder
Returns
- instance of
ERROR(/ConnectorContextImpl.Builder)
public Thread createShutdownHookThread (Runnable task)
public ExceptionHandler getDefaultExceptionHandler ()
helper method to get default instance of ExceptionHandler
Returns
- instance of
ExceptionHandler