Application.AbstractApplicationHelper

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)

public CredentialFactory createCredentialFactory ()

Helper method to create an instance of LocalFileCredentialFactory

Returns

public abstract S createSchedulerBuilderInstance ()

Helper method to create an instance of ConnectorScheduler.Builder

public Thread createShutdownHookThread (Runnable task)

Helper method for creating Thread to be register as ShutdownHook

Parameters
task Runnable to be executed as part of ShutdownHook
Returns
  • thread containing runnable for ShutdownHook

public ExceptionHandler getDefaultExceptionHandler ()

helper method to get default instance of ExceptionHandler

Returns

public Runtime getRuntimeInstance ()

Helper method to get instance of current Runtime

Returns