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
ConstructorDescriptionApplicationModulesRuntime
(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.boolean
isApplicationClass
(Class<?> type) Returns whether a givenClass
is 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:
get
in interfaceSupplier<ApplicationModules>
-
isApplicationClass
Returns whether a givenClass
is 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.
-