|
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + * or more contributor license agreements. See the NOTICE file |
| 4 | + * distributed with this work for additional information |
| 5 | + * regarding copyright ownership. The ASF licenses this file |
| 6 | + * to you under the Apache License, Version 2.0 (the |
| 7 | + * "License"); you may not use this file except in compliance |
| 8 | + * with the License. You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, |
| 13 | + * software distributed under the License is distributed on an |
| 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + * KIND, either express or implied. See the License for the |
| 16 | + * specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + */ |
| 19 | +package org.kie.kogito.index.addon.config; |
| 20 | + |
| 21 | +import io.quarkus.runtime.annotations.ConfigPhase; |
| 22 | +import io.quarkus.runtime.annotations.ConfigRoot; |
| 23 | +import io.smallrye.config.ConfigMapping; |
| 24 | +import io.smallrye.config.WithDefault; |
| 25 | +import io.smallrye.config.WithName; |
| 26 | + |
| 27 | +/** |
| 28 | + * We keep this class for backward compatibility purposes. |
| 29 | + * Avoid using quarkus.kogito.data-index prefixed properties unless there's a strong reason. |
| 30 | + * see: DataIndexBuildConfig. |
| 31 | + */ |
| 32 | +@ConfigMapping(prefix = "quarkus.kogito.data-index") |
| 33 | +@ConfigRoot(phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED) |
| 34 | +public interface QuarkusDataIndexBuildConfig { |
| 35 | + |
| 36 | + /** |
| 37 | + * If GraphQL UI should be enabled. By default, this is only included when the application is running in dev mode. |
| 38 | + */ |
| 39 | + @WithName("graphql.ui.always-include") |
| 40 | + @WithDefault("false") |
| 41 | + boolean graphqlUiAlwaysInclude(); |
| 42 | + |
| 43 | +} |
0 commit comments