Commit 9a6a89e8 authored by Komal Makkar's avatar Komal Makkar
Browse files

intermediate change

parent b54c1fcd
// Copyright © Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.opengroup.osdu.azure.partition;
import org.opengroup.osdu.azure.partition.adapters.EventGridPartitionConfigAdapter;
import org.opengroup.osdu.azure.partition.models.EventGridPartitionConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
public class EventGridConfigProvider implements IAzureResourceConfigProvider {
@Autowired
EventGridPartitionConfigAdapter adapter;
@Override
public EventGridPartitionConfig getConfig(String dataPartitionId) {
return adapter.getConfig(dataPartitionId);
}
}
package org.opengroup.osdu.azure.partition;
import org.opengroup.osdu.azure.partition.models.IAzureResourcePartitionConfig;
import org.springframework.context.annotation.Configuration;
@Configuration
public interface IAzureResourceConfigProvider {
public IAzureResourcePartitionConfig getConfig(String dataPartitionId);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment