Class DefaultObservedModule
java.lang.Object
org.springframework.modulith.observability.DefaultObservedModule
- All Implemented Interfaces:
ObservedModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexposes(com.tngtech.archunit.core.domain.JavaClass type) Returns whether theObservedModuleexposes the givenJavaClass.getInvokedMethod(MethodInvocation invocation) Returns the name of the actually invokedMethod.getName()getObservedModuleType(Class<?> type, ApplicationModules modules) Returns theObservedModuleTypefor the given type andApplicationModules.booleanisObservedModule(ApplicationModule module)
-
Constructor Details
-
DefaultObservedModule
DefaultObservedModule(ApplicationModule module) Creates a newDefaultObservedModulefor the givenApplicationModule.- Parameters:
module- must not be null.
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceObservedModule
-
getDisplayName
- Specified by:
getDisplayNamein interfaceObservedModule
-
getInvokedMethod
Description copied from interface:ObservedModuleReturns the name of the actually invokedMethod.- Specified by:
getInvokedMethodin interfaceObservedModule- Parameters:
invocation- must not be null.- Returns:
-
exposes
public boolean exposes(com.tngtech.archunit.core.domain.JavaClass type) Description copied from interface:ObservedModuleReturns whether theObservedModuleexposes the givenJavaClass.- Specified by:
exposesin interfaceObservedModule- Returns:
-
isObservedModule
- Specified by:
isObservedModulein interfaceObservedModule
-
getObservedModuleType
Description copied from interface:ObservedModuleReturns theObservedModuleTypefor the given type andApplicationModules.- Specified by:
getObservedModuleTypein interfaceObservedModule- Parameters:
type- must not be null.modules- must not be null.- Returns:
- the
ObservedModuleTypefor the given type or null if the type is not to be observed.
-