Package org.archifacts.core.model
Class ApplicationBuilder
- java.lang.Object
-
- org.archifacts.core.model.ApplicationBuilder
-
public final class ApplicationBuilder extends Object
Offers methods to register descriptors and is capable of building theApplicationby applying those descriptors. An instance ofApplicationBuildercan be obtained by callingApplication.builder(). Note: Adding descriptors is not thread-safe!- Author:
- Oliver Libutzki
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationbuildApplication(com.tngtech.archunit.core.domain.JavaClasses javaClasses)Build theApplicationby applying the descriptors.ApplicationBuilderdescriptor(Descriptor descriptor)Registers aDescriptor.
-
-
-
Method Detail
-
descriptor
public ApplicationBuilder descriptor(Descriptor descriptor)
Registers aDescriptor. Supported descriptors are:- Parameters:
descriptor- the descriptor to be added, cannot be null- Returns:
- this instance for method-chaining
-
buildApplication
public Application buildApplication(com.tngtech.archunit.core.domain.JavaClasses javaClasses)
Build theApplicationby applying the descriptors.- Parameters:
javaClasses- The application's scope. All the classes which are part ofJavaClassesare classes which are contained in the application. Cannot be null.- Returns:
- the
Application
-
-