001/* 002 * Copyright 2002-2018 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * https://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017package org.springframework.http.converter.protobuf; 018 019import com.google.protobuf.ExtensionRegistry; 020 021/** 022 * Google Protocol Messages can contain message extensions that can be parsed if 023 * the appropriate configuration has been registered in the {@code ExtensionRegistry}. 024 * 025 * <p>This interface provides a facility to populate the {@code ExtensionRegistry}. 026 * 027 * @author Alex Antonov 028 * @since 4.1 029 * @see <a href="https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/ExtensionRegistry"> 030 * com.google.protobuf.ExtensionRegistry</a> 031 */ 032public interface ExtensionRegistryInitializer { 033 034 /** 035 * Initializes the {@code ExtensionRegistry} with Protocol Message extensions. 036 * @param registry the registry to populate 037 */ 038 void initializeExtensionRegistry(ExtensionRegistry registry); 039 040}