Interface ArchModules.IdentifierAssociation
- Enclosing class:
- ArchModules<DESCRIPTOR extends ArchModule.Descriptor>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@PublicAPI(usage=INHERITANCE)
public static interface ArchModules.IdentifierAssociation
Defines which
classes belong to the same ArchModule.Identifier and thus will eventually
end up in the same ArchModule.-
Method Summary
Modifier and TypeMethodDescriptionAssociates aJavaClasswith a specificArchModule.Identifierwhich will eventually put thisJavaClassinto theArchModulewith the respectiveArchModule.Identifier.default voidinit(Collection<JavaClass> allClasses) An optional hook to add custom logic considering allclassesthat will be associated with anArchModule.Identifier, beforeassociate(JavaClass)will be called on any of theseclasses.
-
Method Details
-
init
An optional hook to add custom logic considering allclassesthat will be associated with anArchModule.Identifier, beforeassociate(JavaClass)will be called on any of theseclasses. -
associate
Associates aJavaClasswith a specificArchModule.Identifierwhich will eventually put thisJavaClassinto theArchModulewith the respectiveArchModule.Identifier.- Parameters:
javaClass- TheJavaClassto associate with anArchModule.Identifier- Returns:
- The associated
ArchModule.Identifier
-