View Javadoc
1   /*
2    * Copyright 2017-2022 original authors
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * https://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package io.micronaut.build.aot;
17  
18  import java.util.Arrays;
19  import java.util.Collections;
20  import java.util.List;
21  
22  abstract class Constants {
23      static final List<String> TYPES_TO_CHECK = Collections.unmodifiableList(Arrays.asList(
24              "io.reactivex.Observable",
25              "reactor.core.publisher.Flux",
26              "kotlinx.coroutines.flow.Flow",
27              "io.reactivex.rxjava3.core.Flowable",
28              "io.reactivex.rxjava3.core.Observable",
29              "io.reactivex.Single",
30              "reactor.core.publisher.Mono",
31              "io.reactivex.Maybe",
32              "io.reactivex.rxjava3.core.Single",
33              "io.reactivex.rxjava3.core.Maybe",
34              "io.reactivex.Completable",
35              "io.reactivex.rxjava3.core.Completable",
36              "io.methvin.watchservice.MacOSXListeningWatchService",
37              "io.micronaut.core.async.publisher.CompletableFuturePublisher",
38              "io.micronaut.core.async.publisher.Publishers.JustPublisher",
39              "io.micronaut.core.async.subscriber.Completable"
40      ));
41  
42      static final List<String> SERVICE_TYPES = Collections.unmodifiableList(Arrays.asList(
43              "io.micronaut.context.env.PropertySourceLoader",
44              "io.micronaut.inject.BeanConfiguration",
45              "io.micronaut.inject.BeanDefinitionReference",
46              "io.micronaut.http.HttpRequestFactory",
47              "io.micronaut.http.HttpResponseFactory",
48              "io.micronaut.core.beans.BeanIntrospectionReference"
49      ));
50  
51      static final String MICRONAUT_AOT_GROUP_ID = "io.micronaut.aot";
52      static final String MICRONAUT_AOT_ARTIFACT_ID_PREFIX = "micronaut-aot-";
53      static final String MICRONAUT_AOT_MAIN_CLASS = "io.micronaut.aot.cli.Main";
54      static final String MICRONAUT_AOT_PACKAGE_NAME = "micronaut.aot.packageName";
55  
56      private Constants() {
57      }
58  }