blob: 307d59640fbb9c2de074d95f0af38a7227ff3162 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2020 Christian Pontesegger and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Christian Pontesegger - initial API and implementation
*******************************************************************************/
package org.eclipse.skills.service;
import org.eclipse.ui.services.AbstractServiceFactory;
import org.eclipse.ui.services.IServiceLocator;
public class SkillServiceFactory extends AbstractServiceFactory {
public SkillServiceFactory() {
}
@SuppressWarnings("rawtypes")
@Override
public Object create(final Class serviceInterface, final IServiceLocator parentLocator, final IServiceLocator locator) {
if (serviceInterface.equals(ISkillService.class))
return SkillService.getInstance();
return null;
}
}