Launcher.java

1
/*
2
 * Copyright (c) 2014 Maxim Yunusov
3
 *    Licensed under the Apache License, Version 2.0 (the "License");
4
 *    you may not use this file except in compliance with the License.
5
 *    You may obtain a copy of the License at
6
 *
7
 *        http://www.apache.org/licenses/LICENSE-2.0
8
 *
9
 *    Unless required by applicable law or agreed to in writing, software
10
 *    distributed under the License is distributed on an "AS IS" BASIS,
11
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 *    See the License for the specific language governing permissions and
13
 *    limitations under the License.
14
 */
15
16
package org.maxur.perfmodel.backend;
17
18
import org.glassfish.hk2.api.ServiceLocator;
19
import org.glassfish.hk2.api.ServiceLocatorFactory;
20
import org.maxur.perfmodel.backend.service.Application;
21
22
import static org.glassfish.hk2.utilities.ServiceLocatorUtilities.bind;
23
24
/**
25
 * Performance Model Calculator Standalone Launcher.
26
 *
27
 * @author Maxim Yunusov
28
 * @version 1.0 14.09.2014
29
 */
30
public final class Launcher {
31
32
    /**
33
     * Utils class.
34
     */
35
    private Launcher() {
36
    }
37
38
    /**
39
     * Command line entry point. This method kicks off the building of a application  object
40
     * and executes it.
41
     * <p>
42
     * @param args - arguments of command.
43
     */
44
    public static void main(String[] args) {
45
        final ServiceLocatorFactory locatorFactory = ServiceLocatorFactory.getInstance();
46
        final ServiceLocator locator = locatorFactory.create("PmcLocator");
47 1 1. main : removed call to org/glassfish/hk2/utilities/ServiceLocatorUtilities::bind → NO_COVERAGE
        bind(locator, new Config());
48
        final Application application = locator.getService(Application.class);
49 1 1. main : removed call to org/maxur/perfmodel/backend/service/Application::start → NO_COVERAGE
        application.start();
50
    }
51
52
53
}

Mutations

47

1.1
Location : main
Killed by : none
removed call to org/glassfish/hk2/utilities/ServiceLocatorUtilities::bind → NO_COVERAGE

49

1.1
Location : main
Killed by : none
removed call to org/maxur/perfmodel/backend/service/Application::start → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.1.6