Interface EMFFormsViewServiceFactory<T>
-
- Type Parameters:
T
- The type of the provided service
- All Known Implementing Classes:
DefaultReferenceServiceFactory
,DefaultSelectionProviderServiceFactory
,DeleteServiceFactoryImpl
,DmrToSegmentsViewServiceFactory
,EclipseContextViewServiceFactory
,EMFFormsAbstractLegacyServiceFactory
,EMFFormsLegacyGlobalServiceFactory
,EMFFormsLegacyLocalServiceFactory
,EMFFormsRevealServiceFactory
,PersistTableStateServiceFactory
,SettingToControlMapFactoryImpl
,TableColumnsDmrViewServiceFactory
public interface EMFFormsViewServiceFactory<T>
AnEMFFormsViewServiceFactory
defines where and how the service will be available. It also creates the concrete service instance on demand.- Since:
- 1.8
- Author:
- Eugen Neufeld
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
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<T>
getType()
The type of the actual service provided by this provider.
-
-
-
Method Detail
-
getPolicy
EMFFormsViewServicePolicy getPolicy()
Defines when the service should be activated.- Returns:
- The
EMFFormsViewServicePolicy
describing when the service should be activated
-
getScope
EMFFormsViewServiceScope getScope()
Defines where the service should be activated.- Returns:
- The
EMFFormsViewServiceScope
describing where the service should be activated
-
getPriority
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
- Returns:
- The priority of this service
-
getType
java.lang.Class<T> getType()
The type of the actual service provided by this provider.- Returns:
- The Class of the actual service
-
createService
T createService(EMFFormsViewContext emfFormsViewContext)
Creates a new instance of the provided service.- 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
-
-