Class DeleteServiceFactoryImpl
- java.lang.Object
-
- org.eclipse.emf.ecp.internal.edit.DeleteServiceFactoryImpl
-
- All Implemented Interfaces:
EMFFormsViewServiceFactory<DeleteService>
public class DeleteServiceFactoryImpl extends java.lang.Object implements EMFFormsViewServiceFactory<DeleteService>
The Factory for creating theEMFDeleteServiceImpl
.- Since:
- 1.8
- Author:
- Eugen Neufeld
-
-
Constructor Summary
Constructors Constructor Description DeleteServiceFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteService
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<DeleteService>
getType()
The type of the actual service provided by this provider.
-
-
-
Method Detail
-
getPolicy
public EMFFormsViewServicePolicy getPolicy()
Defines when the service should be activated.- Specified by:
getPolicy
in interfaceEMFFormsViewServiceFactory<DeleteService>
- 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<DeleteService>
- 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<DeleteService>
- Returns:
- The priority of this service
- See Also:
EMFFormsViewServiceFactory.getPriority()
-
getType
public java.lang.Class<DeleteService> getType()
The type of the actual service provided by this provider.- Specified by:
getType
in interfaceEMFFormsViewServiceFactory<DeleteService>
- Returns:
- The Class of the actual service
- See Also:
EMFFormsViewServiceFactory.getType()
-
createService
public DeleteService createService(EMFFormsViewContext emfFormsViewContext)
Creates a new instance of the provided service.- Specified by:
createService
in interfaceEMFFormsViewServiceFactory<DeleteService>
- 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)
-
-