@Documented @Target(value=TYPE) @Retention(value=RUNTIME) @Inherited public @interface JuneauProvider
BaseProvider
.
BaseProvider
.
Modifier and Type | Optional Element and Description |
---|---|
Class<?>[] |
beanFilters
Provider-level bean filters.
|
String[] |
flags
Shortcut for setting
properties() of boolean types. |
Class<? extends Parser>[] |
parsers
Specifies a list of
Parser classes to add to the list of parsers available for this provider. |
Class<?>[] |
pojoSwaps
Provider-level POJO swaps.
|
Property[] |
properties
Provider-level properties.
|
Class<? extends Serializer>[] |
serializers
Specifies a list of
Serializer classes to add to the list of serializers available for this provider. |
public abstract Class<?>[] beanFilters
These filters are applied to all serializers and parsers being used by the provider.
If the specified class is an instance of BeanFilterBuilder
, then a filter built from that builder is added.
Any other classes are wrapped in a InterfaceBeanFilterBuilder
to indicate that subclasses should
be treated as the specified class type.
public abstract Class<?>[] pojoSwaps
These POJO swaps are applied to all serializers and parsers being used by the provider.
If the specified class is an instance of PojoSwap
, then that swap is added.
Any other classes are wrapped in a SurrogateSwap
.
public abstract Property[] properties
Any of the following property names can be specified:
Property values will be converted to the appropriate type.
These properties can be augmented/overridden through the @RestMethod.properties()
annotation on the REST method.
public abstract String[] flags
properties()
of boolean types.
Setting a flag is the equivalent to setting the same property to
public abstract Class<? extends Serializer>[] serializers
Serializer
classes to add to the list of serializers available for this provider.
This annotation can only be used on Serializer
classes that have no-arg constructors.
Copyright © 2018 Apache. All rights reserved.