Class SpringBootApplicationRuntime
java.lang.Object
org.springframework.modulith.runtime.autoconfigure.SpringBootApplicationRuntime
- All Implemented Interfaces:
- ApplicationRuntime
ApplicationRuntime implementation based on an ApplicationContext and a class that's annotated with
 SpringBootApplication.- Author:
- Oliver Drotbohm
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a newSpringBootApplicationRuntimefor the givenApplicationContext.
- 
Method SummaryModifier and TypeMethodDescriptiongetId()Returns the identifier of the application.Class<?>Returns the primary application class.Class<?>getUserClass(Object bean, String beanName) Obtain the end user class for the given bean and bean name.booleanisApplicationClass(Class<?> type) Returns whether the given type is an application class, i.e.
- 
Constructor Details- 
SpringBootApplicationRuntimeSpringBootApplicationRuntime(ApplicationContext context) Creates a newSpringBootApplicationRuntimefor the givenApplicationContext.- Parameters:
- context- must not be null.
 
 
- 
- 
Method Details- 
getIdDescription copied from interface:ApplicationRuntimeReturns the identifier of the application.- Specified by:
- getIdin interface- ApplicationRuntime
- Returns:
- will never be null.
 
- 
getMainApplicationClassDescription copied from interface:ApplicationRuntimeReturns the primary application class.- Specified by:
- getMainApplicationClassin interface- ApplicationRuntime
- Returns:
- will never be null.
 
- 
getUserClassDescription copied from interface:ApplicationRuntimeObtain the end user class for the given bean and bean name. Necessary to reveal the actual user type from potentially proxied instances.- Specified by:
- getUserClassin interface- ApplicationRuntime
- Parameters:
- bean- must not be null.
- beanName- must not be null or empty.
- Returns:
- will never be null.
 
- 
isApplicationClassDescription copied from interface:ApplicationRuntimeReturns whether the given type is an application class, i.e. user code in one of the application packages.- Specified by:
- isApplicationClassin 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.
 
 
-