Skip to content

Package: EMFFormsLegacyLocalServiceFactory

EMFFormsLegacyLocalServiceFactory

nameinstructionbranchcomplexitylinemethod
EMFFormsLegacyLocalServiceFactory(Class, double, ReportService)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
getPolicy()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getScope()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2015 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.internal.core.services.legacy;
15:
16: import org.eclipse.emf.ecp.view.spi.context.ViewModelService;
17: import org.eclipse.emfforms.spi.common.report.ReportService;
18: import org.eclipse.emfforms.spi.core.services.view.EMFFormsViewServicePolicy;
19: import org.eclipse.emfforms.spi.core.services.view.EMFFormsViewServiceScope;
20:
21: /**
22: * An {@link org.eclipse.emfforms.spi.core.services.view.EMFFormsViewServiceFactory EMFFormsViewServiceFactory} for
23: * {@link ViewModelService}.
24: *
25: * @param <T> The actual type of the {@link ViewModelService}
26: * @author Eugen Neufeld
27: *
28: */
29: public class EMFFormsLegacyLocalServiceFactory<T extends ViewModelService>
30:         extends EMFFormsAbstractLegacyServiceFactory<T> {
31:
32:         /**
33:          * Default constructor used to create an {@link EMFFormsLegacyLocalServiceFactory}.
34:          *
35:          * @param type The type of the service to wrap
36:          * @param priority The priority of the wrapped service
37:          * @param reportService The {@link ReportService} to use for logging
38:          */
39:         public EMFFormsLegacyLocalServiceFactory(Class<T> type, double priority, ReportService reportService) {
40:                 super(type, priority, reportService);
41:         }
42:
43:         /**
44:          * {@inheritDoc}
45:          *
46:          * @see org.eclipse.emfforms.spi.core.services.view.EMFFormsViewServiceFactory#getPolicy()
47:          */
48:         @Override
49:         public EMFFormsViewServicePolicy getPolicy() {
50:                 return EMFFormsViewServicePolicy.IMMEDIATE;
51:         }
52:
53:         /**
54:          * {@inheritDoc}
55:          *
56:          * @see org.eclipse.emfforms.spi.core.services.view.EMFFormsViewServiceFactory#getScope()
57:          */
58:         @Override
59:         public EMFFormsViewServiceScope getScope() {
60:                 return EMFFormsViewServiceScope.LOCAL;
61:         }
62: }