public class ConfigAnnotationAsset extends Object implements org.jboss.shrinkwrap.api.asset.Asset
Constructor and Description |
---|
ConfigAnnotationAsset() |
Modifier and Type | Method and Description |
---|---|
ConfigAnnotationAsset |
autoscaleClass(Class<?> clazz)
Generate config which scales the timeout values of all annotations on the class
|
ConfigAnnotationAsset |
autoscaleMethod(Class<?> clazz,
String method)
Generate config which scales the timeout values of all annotations on a single method
|
ConfigAnnotationAsset |
mergeProperties(Properties properties) |
InputStream |
openStream() |
ConfigAnnotationAsset |
set(Class<?> clazz,
String method,
Class<? extends Annotation> annotation,
String parameter,
String value)
Configure a parameter on an annotation applied to a method
|
ConfigAnnotationAsset |
setGlobally(Class<? extends Annotation> annotation,
String parameter,
String value)
Configure the parameter of an annotation globally
|
ConfigAnnotationAsset |
setValue(Class<?> clazz,
String method,
Class<? extends Annotation> annotation,
String value)
Configure the
value parameter on an annotation applied to a method |
public InputStream openStream()
openStream
in interface org.jboss.shrinkwrap.api.asset.Asset
public ConfigAnnotationAsset autoscaleMethod(Class<?> clazz, String method)
The following values are scaled using the scale factor in TCKConfig:
this
public ConfigAnnotationAsset autoscaleClass(Class<?> clazz)
Only annotations directly on the class are affected, config is not generated for any annotations on methods. Use
autoscaleMethod(Class, String)
to generate config for methods.
The following values are scaled using the scale factor in TCKConfig:
this
public ConfigAnnotationAsset setValue(Class<?> clazz, String method, Class<? extends Annotation> annotation, String value)
value
parameter on an annotation applied to a methodclazz
- the class which has the methodmethod
- the method which has the annotationannotation
- the annotation type which has the parametervalue
- the value to configurethis
public ConfigAnnotationAsset set(Class<?> clazz, String method, Class<? extends Annotation> annotation, String parameter, String value)
clazz
- the class which has the methodmethod
- the name of the method which has the annotationannotation
- the annotation type which has the parameterparameter
- the parameter namevalue
- the value to configurethis
public ConfigAnnotationAsset setGlobally(Class<? extends Annotation> annotation, String parameter, String value)
annotation
- the annotation type which has the parameterparameter
- the parameter namevalue
- the value to configurethis
public ConfigAnnotationAsset mergeProperties(Properties properties)
Copyright © 2016 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.