Package org.machanism.machai.bindex
Class BindexBuilderFactory
java.lang.Object
org.machanism.machai.bindex.BindexBuilderFactory
Factory class for creating BindexBuilder instances based on specific ProjectLayout types.
Usage example:
ProjectLayout layout = ...;
BindexBuilder builder = BindexBuilderFactory.create(layout);
Depending on the layout type, returns an appropriate builder instance, or throws if directory is missing.- Since:
- 0.0.2
- Author:
- Viktor Tovstyi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BindexBuildercreate(ProjectLayout projectLayout) Creates a BindexBuilder suitable for the given ProjectLayout type.
-
Constructor Details
-
BindexBuilderFactory
public BindexBuilderFactory()
-
-
Method Details
-
create
Creates a BindexBuilder suitable for the given ProjectLayout type.- Parameters:
projectLayout- the project layout to analyze (Maven, JScript, Python, or generic)- Returns:
- a suitable BindexBuilder implementation
- Throws:
FileNotFoundException- if the project directory does not exist
-