Skip to content

Commit

Permalink
Add mainApplicationClass accessor to SpringApplication
Browse files Browse the repository at this point in the history
  • Loading branch information
mbenson authored and wilkinsona committed Jan 21, 2016
1 parent 0366900 commit 34b1de6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,14 @@ private boolean isMainThread(Thread currentThread) {
&& "main".equals(currentThread.getThreadGroup().getName());
}

/**
* Returns the main application class that has been deduced or explicitly configured.
* @return the main application class or {@code null}
*/
public Class<?> getMainApplicationClass() {
return this.mainApplicationClass;
}

/**
* Set a specific main application class that will be used as a log source and to
* obtain version information. By default the main application class will be deduced.
Expand Down

0 comments on commit 34b1de6

Please sign in to comment.