|
| 1 | +/* |
| 2 | + * Copyright © 2024 XDEV Software (https://xdev.software) |
| 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 | + * http://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 software.xdev.spring.data.eclipse.store.repository.config; |
| 17 | + |
| 18 | +import org.eclipse.store.integrations.spring.boot.types.configuration.EclipseStoreProperties; |
| 19 | +import org.eclipse.store.integrations.spring.boot.types.factories.EmbeddedStorageFoundationFactory; |
| 20 | +import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; |
| 21 | +import org.springframework.context.annotation.Bean; |
| 22 | +import org.springframework.stereotype.Component; |
| 23 | + |
| 24 | + |
| 25 | +@Component |
| 26 | +public class DefaultEclipseStoreClientConfigurationFactory |
| 27 | +{ |
| 28 | + @Bean |
| 29 | + @ConditionalOnMissingBean(EclipseStoreClientConfiguration.class) |
| 30 | + public DefaultEclipseStoreClientConfiguration getDefaultConfiguration( |
| 31 | + final EclipseStoreProperties defaultEclipseStoreProperties, |
| 32 | + final EmbeddedStorageFoundationFactory defaultEclipseStoreProvider) |
| 33 | + { |
| 34 | + return new DefaultEclipseStoreClientConfiguration(defaultEclipseStoreProperties, defaultEclipseStoreProvider); |
| 35 | + } |
| 36 | +} |
0 commit comments