1 // Copyright 2004, 2005 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.events; 16 17 import java.util.EventListener; 18 19 import org.apache.hivemind.internal.RegistryInfrastructure; 20 21 /** 22 * Lifecycle interface that may be implemented by objects 23 * that need to know when the {@link org.apache.hivemind.Registry} 24 * has been fully initialized and that need a reference to the {@link RegistryInfrastructure} interface. 25 * Typically, this is implemented by core service implementations. 26 * 27 * @author Achim Huegen 28 */ 29 public interface RegistryInitializationListener extends EventListener 30 { 31 /** 32 * Invoked when the registry has been initialized. 33 * All runtime data (Modules, ServicePoints) etc. is assembled. 34 * The hivemind.Startup service point has not been launched before. 35 */ 36 public void registryInitialized(RegistryInfrastructure registry); 37 } 38