Interface ObservedModule
- All Known Implementing Classes:
DefaultObservedModule
interface ObservedModule
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionboolean
exposes
(com.tngtech.archunit.core.domain.JavaClass type) Returns whether theObservedModule
exposes the givenJavaClass
.Returns the human-readable name of the module.Returns theApplicationModuleIdentifier
of 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 theObservedModuleType
for the given type andApplicationModules
.boolean
isEventListenerInvocation
(MethodInvocation invocation) Returns whether the givenMethodInvocation
is the invocation of an event listener as opposed to a standard method invocation on a Spring bean.boolean
isObservedModule
(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 theApplicationModuleIdentifier
of 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 theObservedModule
exposes the givenJavaClass
.- Parameters:
type
-- Returns:
-
isObservedModule
-
getObservedModuleType
Returns theObservedModuleType
for the given type andApplicationModules
.- Parameters:
type
- must not be null.modules
- must not be null.- Returns:
- the
ObservedModuleType
for the given type or null if the type is not to be observed.
-
isEventListenerInvocation
Returns whether the givenMethodInvocation
is 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.