public class ArrayOnceViewModelServiceProvider extends Object implements ViewModelServiceProvider
ViewModelServiceProvider
for compatibility with the injection of
static arrays of services, that provides them exactly once and thereafter
provides no services at all.ViewModelServiceProvider.Composed
NULL
Constructor and Description |
---|
ArrayOnceViewModelServiceProvider(ViewModelService... services)
Initializes me with the services to provide once and once only.
|
Modifier and Type | Method and Description |
---|---|
Collection<? extends ViewModelService> |
getViewModelServices(VElement view,
org.eclipse.emf.ecore.EObject eObject)
Returns newly created view model services which will be used when the given view for the given object is
rendered.
|
public ArrayOnceViewModelServiceProvider(ViewModelService... services)
services
- the one-shot services to providepublic Collection<? extends ViewModelService> getViewModelServices(VElement view, org.eclipse.emf.ecore.EObject eObject)
ViewModelServiceProvider
getViewModelServices
in interface ViewModelServiceProvider
view
- the view to be renderedeObject
- the object to be renderednull
)Copyright © 2019. All rights reserved.