1 /******************************************************************************* 2 * Copyright (c) 2006 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 12 package org.eclipse.osgi.internal.baseadaptor; 13 14 import org.eclipse.osgi.baseadaptor.HookConfigurator; 15 import org.eclipse.osgi.baseadaptor.HookRegistry; 16 17 /** 18 * Add the hooks necessary to support the OSGi Framework specification. 19 */ 20 public class BaseHookConfigurator implements HookConfigurator { 21 22 public void addHooks(HookRegistry registry) { 23 // always add the BaseStorageHook and BaseClassLoadingHook; it is required for the storage implementation 24 BaseStorageHook hook = new BaseStorageHook(new BaseStorage()); 25 registry.addStorageHook(hook); 26 registry.addAdaptorHook(hook); 27 registry.addClassLoadingHook(new BaseClassLoadingHook()); 28 } 29 30 } 31