Package com.oracle.bedrock.jacoco
Class JacocoProfile
- java.lang.Object
-
- com.oracle.bedrock.jacoco.JacocoProfile
-
- All Implemented Interfaces:
com.oracle.bedrock.Option,com.oracle.bedrock.runtime.Profile
public class JacocoProfile extends java.lang.Object implements com.oracle.bedrock.runtime.Profile, com.oracle.bedrock.OptionThe Java Code Coverage (JaCoCo)Profile.Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.- Author:
- Brian Oliver
-
-
Constructor Summary
Constructors Constructor Description JacocoProfile(java.lang.String parameters)Constructs aJacocoProfile.JacocoProfile(java.lang.String parameters, boolean enabled)Constructs aJacocoProfile.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JacocoProfiledisabled()Create aJacocoProfilewith coverage disabled.static JacocoProfileenabled(java.lang.String parameters)Create aJacocoProfile.static JacocoProfilefromSystemProperty()Create aJacocoProfilewith the destination configured from System properties.static JacocoProfilefromSystemProperty(java.lang.String extraParams)Create aJacocoProfilewith the destination configured from System properties.voidonClosing(com.oracle.bedrock.runtime.Platform platform, com.oracle.bedrock.runtime.Application application, com.oracle.bedrock.OptionsByType optionsByType)voidonLaunched(com.oracle.bedrock.runtime.Platform platform, com.oracle.bedrock.runtime.Application application, com.oracle.bedrock.OptionsByType optionsByType)voidonLaunching(com.oracle.bedrock.runtime.Platform platform, com.oracle.bedrock.runtime.MetaClass metaClass, com.oracle.bedrock.OptionsByType optionsByType)
-
-
-
Constructor Detail
-
JacocoProfile
@Default public JacocoProfile(java.lang.String parameters)
Constructs aJacocoProfile.- Parameters:
parameters- the parameters provided to theJacocoProfile
-
JacocoProfile
public JacocoProfile(java.lang.String parameters, boolean enabled)Constructs aJacocoProfile.- Parameters:
parameters- the parameters provided to theJacocoProfileenabled- whether coverage should be enabled
-
-
Method Detail
-
enabled
public static JacocoProfile enabled(java.lang.String parameters)
Create aJacocoProfile.- Parameters:
parameters- the Jacoco parameters- Returns:
- a Jacoco profile with the specified parameters
-
disabled
public static JacocoProfile disabled()
Create aJacocoProfilewith coverage disabled.- Returns:
- a Jacoco profile with coverage disabled
-
fromSystemProperty
public static JacocoProfile fromSystemProperty()
Create aJacocoProfilewith the destination configured from System properties.- Returns:
- a Jacoco profile with the destination configured from System properties
-
fromSystemProperty
public static JacocoProfile fromSystemProperty(java.lang.String extraParams)
Create aJacocoProfilewith the destination configured from System properties.- Returns:
- a Jacoco profile with the destination configured from System properties
-
onLaunching
public void onLaunching(com.oracle.bedrock.runtime.Platform platform, com.oracle.bedrock.runtime.MetaClass metaClass, com.oracle.bedrock.OptionsByType optionsByType)- Specified by:
onLaunchingin interfacecom.oracle.bedrock.runtime.Profile
-
onLaunched
public void onLaunched(com.oracle.bedrock.runtime.Platform platform, com.oracle.bedrock.runtime.Application application, com.oracle.bedrock.OptionsByType optionsByType)- Specified by:
onLaunchedin interfacecom.oracle.bedrock.runtime.Profile
-
onClosing
public void onClosing(com.oracle.bedrock.runtime.Platform platform, com.oracle.bedrock.runtime.Application application, com.oracle.bedrock.OptionsByType optionsByType)- Specified by:
onClosingin interfacecom.oracle.bedrock.runtime.Profile
-
-