Class ApplicationModulesRuntime

java.lang.Object
org.springframework.modulith.runtime.ApplicationModulesRuntime
All Implemented Interfaces:
Supplier<org.springframework.modulith.core.ApplicationModules>

public class ApplicationModulesRuntime extends Object implements Supplier<org.springframework.modulith.core.ApplicationModules>
Bootstrap type to make sure we only bootstrap the initialization of a ApplicationModules instance once per application class.
Author:
Oliver Drotbohm
  • Constructor Details

  • Method Details

    • get

      public org.springframework.modulith.core.ApplicationModules get()
      Specified by:
      get in interface Supplier<org.springframework.modulith.core.ApplicationModules>
    • isApplicationClass

      public boolean isApplicationClass(Class<?> type)
      Returns whether a given Class is considered an application one (versus Framework ones).
      Parameters:
      type -
      Returns:
    • getUserClass

      public Class<?> getUserClass(Object bean, String beanName)
      Returns the actual user class for a given bean and bean name.
      Parameters:
      bean - must not be null.
      beanName - must not be null or empty.
      Returns:
      will never be null.