Interface EMFFormsViewServiceManager
-
- All Known Implementing Classes:
EMFFormsViewServiceManagerImpl
public interface EMFFormsViewServiceManager
This Factory provides access methods to retrieve a service of a specific scope.- Since:
- 1.8
- Author:
- Eugen Neufeld
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Optional<T>
createGlobalImmediateService(java.lang.Class<T> type, EMFFormsViewContext emfFormsViewContext)
Return a global service which should be activated immediately.<T> Optional<T>
createGlobalLazyService(java.lang.Class<T> type, EMFFormsViewContext emfFormsViewContext)
Return a global service which should be activated on request.<T> Optional<T>
createLocalImmediateService(java.lang.Class<T> type, EMFFormsViewContext emfFormsViewContext)
Return a local service which should be activated immediately.<T> Optional<T>
createLocalLazyService(java.lang.Class<T> type, EMFFormsViewContext emfFormsViewContext)
Return a local service which should be activated on request.java.util.Set<java.lang.Class<?>>
getAllGlobalImmediateServiceTypes()
Returns all registered services which are global immediate ordered by the priority.java.util.Set<java.lang.Class<?>>
getAllLocalImmediateServiceTypes()
Returns all registered services which are local immediate ordered by the priority.
-
-
-
Method Detail
-
createLocalImmediateService
<T> Optional<T> createLocalImmediateService(java.lang.Class<T> type, EMFFormsViewContext emfFormsViewContext)
Return a local service which should be activated immediately. If no service of the requested type is available null will be returned.- Type Parameters:
T
- The type parameter of the service- Parameters:
type
- The Type of the requested serviceemfFormsViewContext
- TheEMFFormsViewContext
to use- Returns:
- An optional instance of the requested service registered for this scope.
-
createLocalLazyService
<T> Optional<T> createLocalLazyService(java.lang.Class<T> type, EMFFormsViewContext emfFormsViewContext)
Return a local service which should be activated on request. If no service of the requested type is available null will be returned.- Type Parameters:
T
- The type parameter of the service- Parameters:
type
- The Type of the requested serviceemfFormsViewContext
- TheEMFFormsViewContext
to use- Returns:
- An optional instance of the requested service registered for this scope.
-
createGlobalImmediateService
<T> Optional<T> createGlobalImmediateService(java.lang.Class<T> type, EMFFormsViewContext emfFormsViewContext)
Return a global service which should be activated immediately. If no service of the requested type is available null will be returned.- Type Parameters:
T
- The type parameter of the service- Parameters:
type
- The Type of the requested serviceemfFormsViewContext
- TheEMFFormsViewContext
to use- Returns:
- An optional instance of the requested service registered for this scope.
-
createGlobalLazyService
<T> Optional<T> createGlobalLazyService(java.lang.Class<T> type, EMFFormsViewContext emfFormsViewContext)
Return a global service which should be activated on request. If no service of the requested type is available null will be returned.- Type Parameters:
T
- The type parameter of the service- Parameters:
type
- The Type of the requested serviceemfFormsViewContext
- TheEMFFormsViewContext
to use- Returns:
- An optional instance of the requested service registered for this scope.
-
getAllGlobalImmediateServiceTypes
java.util.Set<java.lang.Class<?>> getAllGlobalImmediateServiceTypes()
Returns all registered services which are global immediate ordered by the priority.- Returns:
- The Set of all services which are global immediate. This set cannot be null
-
getAllLocalImmediateServiceTypes
java.util.Set<java.lang.Class<?>> getAllLocalImmediateServiceTypes()
Returns all registered services which are local immediate ordered by the priority.- Returns:
- The Set of all services which are local immediate. This set cannot be null
-
-