Class InitializerFactory
java.lang.Object
ai.wanaku.capabilities.sdk.runtime.camel.init.InitializerFactory
Factory for creating initializers based on the initFrom parameter.
Returns a GitInitializer if a repository URL is provided, otherwise returns NoOpInitializer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InitializercreateInitializer(String initFrom, Path dataDir) Creates an appropriate initializer based on the initFrom parameter.
-
Constructor Details
-
InitializerFactory
public InitializerFactory()
-
-
Method Details
-
createInitializer
Creates an appropriate initializer based on the initFrom parameter.- Parameters:
initFrom- Git repository URL (SSH or HTTPS), or null for no initializationdataDir- Directory where the repository will be cloned- Returns:
- GitInitializer if initFrom is provided, NoOpInitializer otherwise
-