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
.getInvokedMethod
(MethodInvocation invocation) Returns the name of the actually invokedMethod
.getName()
getObservedModuleType
(Class<?> type, ApplicationModules modules) Returns theObservedModuleType
for the given type andApplicationModules
.boolean
isObservedModule
(ApplicationModule module)
-
Method Details
-
getName
String getName() -
getDisplayName
String getDisplayName() -
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.
-