@Singleton @Requires(beans=GitHubOAuthClient.class) public class GitHubCreateService extends AbstractCreateController
projectGenerator
Constructor and Description |
---|
GitHubCreateService(@NotNull ProjectGenerator projectGenerator,
@NotNull io.micronaut.context.event.ApplicationEventPublisher eventPublisher,
@NotNull GitHubOAuthClient gitHubOAuthClient,
@NotNull GitHubApiClient gitHubApiClient,
StarterConfiguration.GitHubConfiguration gitHubConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected GitHubRepository |
creatApp(ApplicationType type,
java.lang.String name,
java.util.List<java.lang.String> features,
BuildTool buildTool,
TestFramework testFramework,
Language lang,
JdkVersion javaVersion,
java.lang.String code,
java.lang.String state,
java.lang.String userAgent) |
protected void |
generateAppLocally(@NotNull GeneratorContext generatorContext,
@NotNull java.nio.file.Path repoPath)
Generates the micronaut application into specified
repoPath directory |
createProjectGeneratorContext, getOperatingSystem
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)
protected GitHubRepository creatApp(@NonNull ApplicationType type, @NonNull java.lang.String name, @Nullable java.util.List<java.lang.String> features, @Nullable BuildTool buildTool, @Nullable TestFramework testFramework, @Nullable Language lang, @Nullable JdkVersion javaVersion, @NonNull java.lang.String code, @NonNull java.lang.String state, @Nullable java.lang.String userAgent)
protected void generateAppLocally(@NotNull @NotNull GeneratorContext generatorContext, @NotNull @NotNull java.nio.file.Path repoPath) throws java.io.IOException
repoPath
directorygeneratorContext
- contextrepoPath
- pathjava.io.IOException