Class SpringBootApplicationRuntime

java.lang.Object
org.springframework.modulith.runtime.SpringBootApplicationRuntime
All Implemented Interfaces:
ApplicationRuntime

class SpringBootApplicationRuntime extends Object implements ApplicationRuntime
ApplicationRuntime implementation based on an ApplicationContext and a class that's annotated with SpringBootApplication.
Author:
Oliver Drotbohm
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Description copied from interface: ApplicationRuntime
      Returns the identifier of the application.
      Specified by:
      getId in interface ApplicationRuntime
      Returns:
      will never be null.
    • getMainApplicationClass

      public Class<?> getMainApplicationClass()
      Description copied from interface: ApplicationRuntime
      Returns the primary application class.
      Specified by:
      getMainApplicationClass in interface ApplicationRuntime
      Returns:
      will never be null.
    • getUserClass

      public Class<?> getUserClass(Object bean, String beanName)
      Description copied from interface: ApplicationRuntime
      Obtain the end user class for the given bean and bean name. Necessary to reveal the actual user type from potentially proxied instances.
      Specified by:
      getUserClass in interface ApplicationRuntime
      Parameters:
      bean - must not be null.
      beanName - must not be null or empty.
      Returns:
      will never be null.
    • isApplicationClass

      public boolean isApplicationClass(Class<?> type)
      Description copied from interface: ApplicationRuntime
      Returns whether the given type is an application class, i.e. user code in one of the application packages.
      Specified by:
      isApplicationClass in interface ApplicationRuntime
      Parameters:
      type - must not be null.
      Returns:
      whether the given type is an application class, i.e. user code in one of the application packages.