org.springframework.yarn.boot
Interface SpringApplicationCallback<T>

Type Parameters:
T - The return type from an action

public interface SpringApplicationCallback<T>

An action to take on a Spring Boot Application.

Author:
Janne Valkealahti

Method Summary
 T runWithSpringApplication(ApplicationContext context)
          Perform an actions with a given ApplicationContext.
 

Method Detail

runWithSpringApplication

T runWithSpringApplication(ApplicationContext context)
                           throws Exception
Perform an actions with a given ApplicationContext.

Parameters:
context - the application context
Returns:
the return value of type T
Throws:
Exception - the exception if error occurred