public abstract class AbstractServiceFactory extends Object
org.eclipse.ui.servicesextension point. You are given a service locator to look up other services, and can retrieve your parent service (if one has already been created).
|Constructor and Description|
|Modifier and Type||Method and Description|
When a service locator cannot find a service it will request one from the registry, which will call this factory create method.
public abstract Object create(Class serviceInterface, IServiceLocator parentLocator, IServiceLocator locator)
You can use the locator to get any needed services and a parent service
locator will be provided if you need access to the parent service. If the
parent object return from the parent locator is not
it can be cast to the service interface that is requested. The parent
service locator will only return the serviceInterface service.
serviceInterface- the service we need to create. Will not be
parentLocator- A locator that can return a parent service instance if desired. The parent service can be cast to serviceInterface. Will not be
locator- the service locator which can be used to retrieve dependent services. Will not be
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.