Class ApplicationModulesRuntime
java.lang.Object
org.springframework.modulith.runtime.ApplicationModulesRuntime
- All Implemented Interfaces:
Supplier<ApplicationModules>
Bootstrap type to make sure we only bootstrap the initialization of a
ApplicationModules instance once per
application class.- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationModulesRuntime(Supplier<ApplicationModules> modules, ApplicationRuntime runtime) -
Method Summary
Modifier and TypeMethodDescriptionget()Class<?>getUserClass(Object bean, String beanName) Returns the actual user class for a given bean and bean name.booleanisApplicationClass(Class<?> type) Returns whether a givenClassis considered an application one (versus Framework ones).
-
Constructor Details
-
ApplicationModulesRuntime
- Parameters:
modules- must not be null.runtime- must not be null.
-
-
Method Details
-
get
- Specified by:
getin interfaceSupplier<ApplicationModules>
-
isApplicationClass
Returns whether a givenClassis considered an application one (versus Framework ones).- Parameters:
type-- Returns:
-
getUserClass
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.
-