Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 765dd2af8b90aa5f21e4b9dfcdb0bb23412b128f (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************************
 * Copyright (c) 2010, 2011 VMware Inc.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *    SpringSource, a division of VMware - initial API and implementation and/or initial documentation
 *******************************************************************************/

package org.eclipse.equinox.internal.region.hook;

import org.eclipse.equinox.region.RegionDigraph;

import java.util.Collection;

import org.osgi.framework.hooks.resolver.ResolverHook;
import org.osgi.framework.hooks.resolver.ResolverHookFactory;
import org.osgi.framework.wiring.BundleRevision;

/**
 * {@link RegionResolverHook} constructs an instance of {@link RegionResolverHook} for a particular resolution
 * operation.
 * <p />
 * 
 * <strong>Concurrent Semantics</strong><br />
 * 
 * Thread safe.
 */
public final class RegionResolverHookFactory implements ResolverHookFactory {

	private final RegionDigraph regionDigraph;

	public RegionResolverHookFactory(RegionDigraph regionDigraph) {
		this.regionDigraph = regionDigraph;
	}

	public ResolverHook begin(Collection<BundleRevision> triggers) {
		return new RegionResolverHook(this.regionDigraph);
	}

}

Back to the top