Class GitHubCreateService
java.lang.Object
io.micronaut.starter.api.create.AbstractCreateController
io.micronaut.starter.api.create.github.GitHubCreateService
@Singleton
@Requires(beans=GitHubOAuthClient.class)
public class GitHubCreateService
extends AbstractCreateController
GitHub create service.
- Since:
- 2.2
- Author:
- Pavol Gressa
-
Field Summary
Fields inherited from class io.micronaut.starter.api.create.AbstractCreateController
projectGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionGitHubCreateService
(@NotNull ProjectGenerator projectGenerator, @NotNull io.micronaut.context.event.ApplicationEventPublisher eventPublisher, @NotNull GitHubOAuthClient gitHubOAuthClient, @NotNull GitHubApiClient gitHubApiClient, StarterConfiguration.GitHubConfiguration gitHubConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected GitHubRepository
creatApp
(@NonNull ApplicationType type, @NonNull String name, @Nullable List<String> features, @Nullable BuildTool buildTool, @Nullable TestFramework testFramework, @Nullable Language lang, @Nullable JdkVersion javaVersion, @NonNull String code, @NonNull String state, @Nullable String userAgent) protected void
generateAppLocally
(@NotNull GeneratorContext generatorContext, @NotNull Path repoPath) Generates the micronaut application into specifiedrepoPath
directoryMethods inherited from class io.micronaut.starter.api.create.AbstractCreateController
createProjectGeneratorContext, getOperatingSystem
-
Constructor Details
-
GitHubCreateService
public GitHubCreateService(@NotNull @NotNull ProjectGenerator projectGenerator, @NotNull @NotNull io.micronaut.context.event.ApplicationEventPublisher eventPublisher, @NotNull @NotNull GitHubOAuthClient gitHubOAuthClient, @NotNull @NotNull GitHubApiClient gitHubApiClient, @NotNull StarterConfiguration.GitHubConfiguration gitHubConfiguration)
-
-
Method Details
-
creatApp
protected GitHubRepository creatApp(@NonNull @NonNull ApplicationType type, @NonNull @NonNull String name, @Nullable @Nullable List<String> features, @Nullable @Nullable BuildTool buildTool, @Nullable @Nullable TestFramework testFramework, @Nullable @Nullable Language lang, @Nullable @Nullable JdkVersion javaVersion, @NonNull @NonNull String code, @NonNull @NonNull String state, @Nullable @Nullable String userAgent) -
generateAppLocally
protected void generateAppLocally(@NotNull @NotNull GeneratorContext generatorContext, @NotNull @NotNull Path repoPath) throws IOException Generates the micronaut application into specifiedrepoPath
directory- Parameters:
generatorContext
- contextrepoPath
- path- Throws:
IOException
-