Skip to content

Package: GlassfishApplication

GlassfishApplication

nameinstructionbranchcomplexitylinemethod
GlassfishApplication(URL, DeployedService, GlassfishContainer, TargetModuleID[])
M: 11 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
undeploy()
M: 8 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Distribution License v. 1.0, which is available at
6: * http://www.eclipse.org/org/documents/edl-v10.php.
7: *
8: * SPDX-License-Identifier: BSD-3-Clause
9: */
10:
11: package com.sun.xml.ws.test.container.gf;
12:
13: import com.sun.xml.ws.test.container.AbstractHttpApplication;
14: import com.sun.xml.ws.test.container.Application;
15: import com.sun.xml.ws.test.container.DeployedService;
16:
17: import javax.enterprise.deploy.spi.TargetModuleID;
18: import java.net.URL;
19:
20: /**
21: * {@link Application} implementation for {@link GlassfishContainer}.
22: *
23: * @author Kohsuke Kawaguchi
24: */
25: final class GlassfishApplication extends AbstractHttpApplication {
26:
27: private final GlassfishContainer container;
28:
29: /**
30: * These JSR-88 objects represent the deployed modules.
31: */
32: private final TargetModuleID[] modules;
33:
34: public GlassfishApplication(URL warURL, DeployedService service, GlassfishContainer container, TargetModuleID[] modules) {
35: super(warURL, service);
36: this.container = container;
37: this.modules = modules;
38: }
39:
40: public void undeploy() throws Exception {
41: container.undeploy(modules,warURL);
42: }
43: }