Interface ObservedModule
- All Known Implementing Classes:
DefaultObservedModule
interface ObservedModule
- Author:
- Oliver Drotbohm
-
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()Deprecated, for removal: This API element is subject to removal in a future version.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)
-
Method Details
-
getName
Deprecated, for removal: This API element is subject to removal in a future version.since 1.3, usegetIdentifier()instead.Returns the name of the application module.- Returns:
- will never be null.
-
getIdentifier
ApplicationModuleIdentifier getIdentifier()Returns theApplicationModuleIdentifierof the underlying module.- Returns:
- will never be null.
-
getDisplayName
String getDisplayName()Returns the human-readable name of the module.- Returns:
- will never be null.
-
getInvokedMethod
Returns the name of the actually invokedMethod.- Parameters:
invocation- must not be null.- Returns:
-
exposes
boolean exposes(com.tngtech.archunit.core.domain.JavaClass type) Returns whether theObservedModuleexposes the givenJavaClass.- Parameters:
type-- Returns:
-
isObservedModule
-
getObservedModuleType
Returns theObservedModuleTypefor the given type andApplicationModules.- 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
Returns whether the givenMethodInvocationis the invocation of an event listener as opposed to a standard method invocation on a Spring bean.- Parameters:
invocation- must not be null.- Since:
- 1.3
-
getIdentifier()instead.