Class SettingToControlMapFactoryImpl
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.controlmapper.SettingToControlMapFactoryImpl
-
- All Implemented Interfaces:
EMFFormsViewServiceFactory<EMFFormsSettingToControlMapper>
public class SettingToControlMapFactoryImpl extends java.lang.Object implements EMFFormsViewServiceFactory<EMFFormsSettingToControlMapper>
Implementation ofEMFFormsViewServiceFactory
as an OSGI service.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description SettingToControlMapFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EMFFormsSettingToControlMapper
createService(EMFFormsViewContext emfFormsViewContext)
Creates a new instance of the provided service.EMFFormsViewServicePolicy
getPolicy()
Defines when the service should be activated.double
getPriority()
The priority of the service.EMFFormsViewServiceScope
getScope()
Defines where the service should be activated.java.lang.Class<EMFFormsSettingToControlMapper>
getType()
The type of the actual service provided by this provider.protected void
setEMFFormsMappingProviderManager(EMFFormsMappingProviderManager mappingManager)
Sets theEMFFormsMappingProviderManager
.
-
-
-
Method Detail
-
setEMFFormsMappingProviderManager
protected void setEMFFormsMappingProviderManager(EMFFormsMappingProviderManager mappingManager)
Sets theEMFFormsMappingProviderManager
.- Parameters:
mappingManager
- TheEMFFormsMappingProviderManager
-
getPolicy
public EMFFormsViewServicePolicy getPolicy()
Defines when the service should be activated.- Specified by:
getPolicy
in interfaceEMFFormsViewServiceFactory<EMFFormsSettingToControlMapper>
- Returns:
- The
EMFFormsViewServicePolicy
describing when the service should be activated - See Also:
EMFFormsViewServiceFactory.getPolicy()
-
getScope
public EMFFormsViewServiceScope getScope()
Defines where the service should be activated.- Specified by:
getScope
in interfaceEMFFormsViewServiceFactory<EMFFormsSettingToControlMapper>
- Returns:
- The
EMFFormsViewServiceScope
describing where the service should be activated - See Also:
EMFFormsViewServiceFactory.getScope()
-
getPriority
public double getPriority()
The priority of the service. The usage of this service is twofold:- A service with a higher priority is more likely to be used if more than one service of the same type is registered.
- A service with lower priority is instantiated and thereby executed earlier than other services of all types with higher priorities
- Specified by:
getPriority
in interfaceEMFFormsViewServiceFactory<EMFFormsSettingToControlMapper>
- Returns:
- The priority of this service
- See Also:
EMFFormsViewServiceFactory.getPriority()
-
getType
public java.lang.Class<EMFFormsSettingToControlMapper> getType()
The type of the actual service provided by this provider.- Specified by:
getType
in interfaceEMFFormsViewServiceFactory<EMFFormsSettingToControlMapper>
- Returns:
- The Class of the actual service
- See Also:
EMFFormsViewServiceFactory.getType()
-
createService
public EMFFormsSettingToControlMapper createService(EMFFormsViewContext emfFormsViewContext)
Creates a new instance of the provided service.- Specified by:
createService
in interfaceEMFFormsViewServiceFactory<EMFFormsSettingToControlMapper>
- Parameters:
emfFormsViewContext
- TheEMFFormsViewContext
to use during the creation of the service- Returns:
- A new instance of the provided service or null if the service should not be created
- See Also:
EMFFormsViewServiceFactory.createService(org.eclipse.emfforms.spi.core.services.view.EMFFormsViewContext)
-
-