public class EMFFormsViewServiceManagerImpl extends Object implements EMFFormsViewServiceManager
Constructor and Description |
---|
EMFFormsViewServiceManagerImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEMFFormsScopedServiceProvider(EMFFormsViewServiceFactory<?> provider)
Called by OSGi whenever a new provider is available.
|
<T> Optional<T> |
createGlobalImmediateService(Class<T> type,
EMFFormsViewContext emfFormsViewContext)
Return a global service which should be activated immediately.
|
<T> Optional<T> |
createGlobalLazyService(Class<T> type,
EMFFormsViewContext emfFormsViewContext)
Return a global service which should be activated on request.
|
<T> Optional<T> |
createLocalImmediateService(Class<T> type,
EMFFormsViewContext emfFormsViewContext)
Return a local service which should be activated immediately.
|
<T> Optional<T> |
createLocalLazyService(Class<T> type,
EMFFormsViewContext emfFormsViewContext)
Return a local service which should be activated on request.
|
Set<Class<?>> |
getAllGlobalImmediateServiceTypes()
Returns all registered services which are global immediate ordered by the priority.
|
Set<Class<?>> |
getAllLocalImmediateServiceTypes()
Returns all registered services which are local immediate ordered by the priority.
|
protected void |
removeEMFFormsScopedServiceProvider(EMFFormsViewServiceFactory<?> provider)
Called by OSGi whenever a provider is removed.
|
protected void addEMFFormsScopedServiceProvider(EMFFormsViewServiceFactory<?> provider)
provider
- The newly available providerprotected void removeEMFFormsScopedServiceProvider(EMFFormsViewServiceFactory<?> provider)
provider
- The removed providerpublic <T> Optional<T> createLocalImmediateService(Class<T> type, EMFFormsViewContext emfFormsViewContext)
createLocalImmediateService
in interface EMFFormsViewServiceManager
T
- The type parameter of the servicetype
- The Type of the requested serviceemfFormsViewContext
- The EMFFormsViewContext
to useEMFFormsViewServiceManager.createLocalImmediateService(java.lang.Class,EMFFormsViewContext)
public <T> Optional<T> createLocalLazyService(Class<T> type, EMFFormsViewContext emfFormsViewContext)
createLocalLazyService
in interface EMFFormsViewServiceManager
T
- The type parameter of the servicetype
- The Type of the requested serviceemfFormsViewContext
- The EMFFormsViewContext
to useEMFFormsViewServiceManager.createLocalLazyService(java.lang.Class,EMFFormsViewContext)
public <T> Optional<T> createGlobalImmediateService(Class<T> type, EMFFormsViewContext emfFormsViewContext)
createGlobalImmediateService
in interface EMFFormsViewServiceManager
T
- The type parameter of the servicetype
- The Type of the requested serviceemfFormsViewContext
- The EMFFormsViewContext
to useEMFFormsViewServiceManager.createGlobalImmediateService(java.lang.Class,EMFFormsViewContext)
public <T> Optional<T> createGlobalLazyService(Class<T> type, EMFFormsViewContext emfFormsViewContext)
createGlobalLazyService
in interface EMFFormsViewServiceManager
T
- The type parameter of the servicetype
- The Type of the requested serviceemfFormsViewContext
- The EMFFormsViewContext
to useEMFFormsViewServiceManager.createGlobalLazyService(java.lang.Class,EMFFormsViewContext)
public Set<Class<?>> getAllGlobalImmediateServiceTypes()
getAllGlobalImmediateServiceTypes
in interface EMFFormsViewServiceManager
EMFFormsViewServiceManager.getAllGlobalImmediateServiceTypes()
public Set<Class<?>> getAllLocalImmediateServiceTypes()
getAllLocalImmediateServiceTypes
in interface EMFFormsViewServiceManager
EMFFormsViewServiceManager.getAllLocalImmediateServiceTypes()
Copyright © 2019. All rights reserved.