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.Returns the human-readable name of the module.Returns theApplicationModuleIdentifierof the underlying module.getInvokedMethod(MethodInvocation invocation) Returns the name of the actually invokedMethod.getName()Returns the name of the application module.getObservedModuleType(Class<?> type, ApplicationModules modules) Returns theObservedModuleTypefor the given type andApplicationModules.booleanisEventListenerInvocation(MethodInvocation invocation) Returns whether the givenMethodInvocationis the invocation of an event listener as opposed to a standard method invocation on a Spring bean.booleanisObservedModule(ApplicationModule module)
-
Constructor Details
-
DefaultObservedModule
DefaultObservedModule(ApplicationModule module) Creates a newDefaultObservedModulefor the givenApplicationModule.- Parameters:
module- must not be null.
-
-
Method Details
-
getName
Description copied from interface:ObservedModuleReturns the name of the application module.- Specified by:
getNamein interfaceObservedModule- Returns:
- will never be null.
-
getIdentifier
Description copied from interface:ObservedModuleReturns theApplicationModuleIdentifierof the underlying module.- Specified by:
getIdentifierin interfaceObservedModule- Returns:
- will never be null.
-
getDisplayName
Description copied from interface:ObservedModuleReturns the human-readable name of the module.- Specified by:
getDisplayNamein interfaceObservedModule- Returns:
- will never be null.
-
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.
-
isEventListenerInvocation
Description copied from interface:ObservedModuleReturns whether the givenMethodInvocationis the invocation of an event listener as opposed to a standard method invocation on a Spring bean.- Specified by:
isEventListenerInvocationin interfaceObservedModule- Parameters:
invocation- must not be null.
-