public class JacocoProfile extends Object implements Profile, com.oracle.bedrock.Option
Profile.
Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Constructor and Description |
|---|
JacocoProfile(String parameters)
Constructs a
JacocoProfile. |
JacocoProfile(String parameters,
boolean enabled)
Constructs a
JacocoProfile. |
| Modifier and Type | Method and Description |
|---|---|
static JacocoProfile |
disabled()
Create a
JacocoProfile with coverage disabled. |
static JacocoProfile |
enabled(String parameters)
Create a
JacocoProfile. |
static JacocoProfile |
fromSystemProperty()
Create a
JacocoProfile with the destination configured from System properties. |
static JacocoProfile |
fromSystemProperty(String extraParams)
Create a
JacocoProfile with the destination configured from System properties. |
void |
onClosing(Platform platform,
Application application,
com.oracle.bedrock.OptionsByType optionsByType) |
void |
onLaunched(Platform platform,
Application application,
com.oracle.bedrock.OptionsByType optionsByType) |
void |
onLaunching(Platform platform,
MetaClass metaClass,
com.oracle.bedrock.OptionsByType optionsByType) |
@OptionsByType.Default public JacocoProfile(String parameters)
JacocoProfile.parameters - the parameters provided to the JacocoProfilepublic JacocoProfile(String parameters, boolean enabled)
JacocoProfile.parameters - the parameters provided to the JacocoProfileenabled - whether coverage should be enabledpublic static JacocoProfile enabled(String parameters)
JacocoProfile.parameters - the Jacoco parameterspublic static JacocoProfile disabled()
JacocoProfile with coverage disabled.public static JacocoProfile fromSystemProperty()
JacocoProfile with the destination configured from System properties.public static JacocoProfile fromSystemProperty(String extraParams)
JacocoProfile with the destination configured from System properties.public void onLaunching(Platform platform, MetaClass metaClass, com.oracle.bedrock.OptionsByType optionsByType)
onLaunching in interface Profilepublic void onLaunched(Platform platform, Application application, com.oracle.bedrock.OptionsByType optionsByType)
onLaunched in interface Profilepublic void onClosing(Platform platform, Application application, com.oracle.bedrock.OptionsByType optionsByType)
Copyright © 2023. All rights reserved.