1 // Copyright 2007 The Apache Software Foundation 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package org.apache.hivemind.definition; 16 17 import org.apache.hivemind.ErrorHandler; 18 19 /** 20 * Interface for post processors that want to get after the definition phase 21 * of a registry before the registry is started up. 22 * A post processor is allowed to alter the definition structure. 23 * 24 * @author Huegen 25 */ 26 public interface RegistryDefinitionPostProcessor 27 { 28 /** 29 * Is called after all registry providers have run through their process method. 30 * That means, all extension points of all modules are now known to the registry 31 * definition. 32 * 33 * @param registryDefinition the definition 34 * @param errorHandler an handler for the reporting of recoverable errors 35 */ 36 public void postprocess(RegistryDefinition registryDefinition, ErrorHandler errorHandler); 37 38 } 39