Class FunctionClassUtils

java.lang.Object
org.springframework.cloud.function.utils.FunctionClassUtils

public final class FunctionClassUtils extends Object
General utility class which aggregates various class-level utility functions used by the framework.
Since:
3.0.1
Author:
Oleg Zhurakousky
  • Method Details

    • getStartClass

      public static Class<?> getStartClass()
      Discovers the start class in the currently running application. The discover search order is 'MAIN_CLASS' environment property, 'MAIN_CLASS' system property, META-INF/MANIFEST.MF:'Start-Class' attribute, meta-inf/manifest.mf:'Start-Class' attribute.
      Returns:
      instance of Class which represent the start class of the application.