Class EMFFormsRevealServiceFactory
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.reveal.EMFFormsRevealServiceFactory
-
- All Implemented Interfaces:
EMFFormsViewServiceFactory<EMFFormsRevealService>
public class EMFFormsRevealServiceFactory extends java.lang.Object implements EMFFormsViewServiceFactory<EMFFormsRevealService>
Factory that creates the EMF Forms reveal service.- Since:
- 1.22
-
-
Constructor Summary
Constructors Constructor Description EMFFormsRevealServiceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRevealProvider(EMFFormsRevealProvider provider)
Inject a reveal provider dependency.EMFFormsRevealService
createService(EMFFormsViewContext context)
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<EMFFormsRevealService>
getType()
The type of the actual service provided by this provider.void
removeRevealProvider(EMFFormsRevealProvider provider)
Uninject a reveal provider dependency.
-
-
-
Method Detail
-
getScope
public EMFFormsViewServiceScope getScope()
Description copied from interface:EMFFormsViewServiceFactory
Defines where the service should be activated.- Specified by:
getScope
in interfaceEMFFormsViewServiceFactory<EMFFormsRevealService>
- Returns:
- The
EMFFormsViewServiceScope
describing where the service should be activated
-
getPolicy
public EMFFormsViewServicePolicy getPolicy()
Description copied from interface:EMFFormsViewServiceFactory
Defines when the service should be activated.- Specified by:
getPolicy
in interfaceEMFFormsViewServiceFactory<EMFFormsRevealService>
- Returns:
- The
EMFFormsViewServicePolicy
describing when the service should be activated
-
getPriority
public double getPriority()
Description copied from interface:EMFFormsViewServiceFactory
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<EMFFormsRevealService>
- Returns:
- The priority of this service
-
getType
public java.lang.Class<EMFFormsRevealService> getType()
Description copied from interface:EMFFormsViewServiceFactory
The type of the actual service provided by this provider.- Specified by:
getType
in interfaceEMFFormsViewServiceFactory<EMFFormsRevealService>
- Returns:
- The Class of the actual service
-
createService
public EMFFormsRevealService createService(EMFFormsViewContext context)
Description copied from interface:EMFFormsViewServiceFactory
Creates a new instance of the provided service.- Specified by:
createService
in interfaceEMFFormsViewServiceFactory<EMFFormsRevealService>
- Parameters:
context
- 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
-
addRevealProvider
public void addRevealProvider(EMFFormsRevealProvider provider)
Inject a reveal provider dependency.- Parameters:
provider
- the reveal provider to add
-
removeRevealProvider
public void removeRevealProvider(EMFFormsRevealProvider provider)
Uninject a reveal provider dependency.- Parameters:
provider
- the reveal provider to remove
-
-