Debian Codegraph @

bundles/org.eclipse.equinox.p2.updatechecker/src/org/eclipse/equinox/internal/p2/updatechecker/UpdateCheckerComponent.java

raw
1 /*******************************************************************************
2 * Copyright (c) 2010, 2017 IBM Corporation and others.
3 *
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
8 *
9 * SPDX-License-Identifier: EPL-2.0
10 *
11 * Contributors:
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14
15 package org.eclipse.equinox.internal.p2.updatechecker;
16
17 import org.eclipse.equinox.p2.core.IProvisioningAgent;
18 import org.eclipse.equinox.p2.core.spi.IAgentServiceFactory;
19
20 /**
21 * Component for instantiating update checker service instances.
22 */
23 public class UpdateCheckerComponent implements IAgentServiceFactory {
24 public static final String BUNDLE_ID = "org.eclipse.equinox.p2.updatechecker"; //$NON-NLS-1$
25
26 @Override
27 public Object createService(IProvisioningAgent agent) {
28 return new UpdateChecker(agent);
29 }
30
31 }