Class DisableConfigAsset
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.disableEnv.DisableConfigAsset
- All Implemented Interfaces:
org.jboss.shrinkwrap.api.asset.Asset
Asset which writes a config file with lines to enable and disable annotations
- Author:
- Andrew Rouse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondisable
(Class<?> clazz, Class<? extends Annotation> annotation) Add config entry to disable an annotation on the given classdisable
(Class<?> clazz, String method, Class<? extends Annotation> annotation) Add config entry to disable an annotation on the given class and methoddisable
(Class<? extends Annotation> annotation) Add config entry to disable an annotation globallyGlobally disable Fault Tolerance except Fallback by setting MP_Fault_Tolerance_NonFallback_Enabled to false.enable
(Class<?> clazz, Class<? extends Annotation> annotation) Add config entry to enable an annotation on the given classenable
(Class<?> clazz, String method, Class<? extends Annotation> annotation) Add config entry to enable an annotation on the given class and methodenable
(Class<? extends Annotation> annotation) Add config entry to enable an annotation globallygetProps()
-
Constructor Details
-
DisableConfigAsset
public DisableConfigAsset()
-
-
Method Details
-
getProps
-
openStream
- Specified by:
openStream
in interfaceorg.jboss.shrinkwrap.api.asset.Asset
-
disableGlobally
Globally disable Fault Tolerance except Fallback by setting MP_Fault_Tolerance_NonFallback_Enabled to false. -
disable
public DisableConfigAsset disable(Class<?> clazz, String method, Class<? extends Annotation> annotation) Add config entry to disable an annotation on the given class and method- Parameters:
clazz
- the classmethod
- the methodannotation
- the annotation- Returns:
- itself
-
disable
Add config entry to disable an annotation on the given class- Parameters:
clazz
- the classannotation
- the annotation- Returns:
- itself
-
disable
Add config entry to disable an annotation globally- Parameters:
annotation
- the annotation- Returns:
- itself
-
enable
public DisableConfigAsset enable(Class<?> clazz, String method, Class<? extends Annotation> annotation) Add config entry to enable an annotation on the given class and method- Parameters:
clazz
- the classmethod
- the methodannotation
- the annotation- Returns:
- itself
-
enable
Add config entry to enable an annotation on the given class- Parameters:
clazz
- the classannotation
- the annotation- Returns:
- itself
-
enable
Add config entry to enable an annotation globally- Parameters:
annotation
- the annotation- Returns:
- itself
-