public class ServiceFactoryDefinition extends Object implements de.cs3d.util.eclipse.extension.simple.IdentifiableExtension.Identifiable, ServiceFactory
Constructor and Description |
---|
ServiceFactoryDefinition(String id,
org.eclipse.core.runtime.IConfigurationElement conf)
Create a service factory definition from the given configuration element.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
createService(Class<T> serviceInterface,
ServiceProvider serviceLocator)
Create a new instance of a service.
|
String |
getId() |
String |
getScope()
Get the service factory service scope.
|
Set<Class<?>> |
getServiceInterfaces()
Get the supported service interfaces of the factory.
|
public ServiceFactoryDefinition(String id, org.eclipse.core.runtime.IConfigurationElement conf) throws org.eclipse.core.runtime.CoreException
id
- the service factory identifierconf
- the configuration elementorg.eclipse.core.runtime.CoreException
- if instantiating the service factory failspublic <T> T createService(Class<T> serviceInterface, ServiceProvider serviceLocator)
ServiceFactory
createService
in interface ServiceFactory
serviceInterface
- the service interfaceserviceLocator
- the service provider for accessing dependency
servicespublic String getId()
getId
in interface de.cs3d.util.eclipse.extension.simple.IdentifiableExtension.Identifiable
public String getScope()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a