File: BaseHookConfigurator.java

package info (click to toggle)
libequinox-osgi-java 3.9.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,068 kB
  • sloc: java: 57,768; makefile: 9
file content (30 lines) | stat: -rw-r--r-- 1,189 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*******************************************************************************
 * Copyright (c) 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.osgi.internal.baseadaptor;

import org.eclipse.osgi.baseadaptor.HookConfigurator;
import org.eclipse.osgi.baseadaptor.HookRegistry;

/**
 * Add the hooks necessary to support the OSGi Framework specification.  
 */
public class BaseHookConfigurator implements HookConfigurator {

	public void addHooks(HookRegistry registry) {
		// always add the BaseStorageHook and BaseClassLoadingHook; it is required for the storage implementation
		BaseStorageHook hook = new BaseStorageHook(new BaseStorage());
		registry.addStorageHook(hook);
		registry.addAdaptorHook(hook);
		registry.addClassLoadingHook(new BaseClassLoadingHook());
	}

}