Class Inherit

java.lang.Object
org.apache.juneau.rest.annotation.Inherit

public final class Inherit extends Object
Dummy class that indicates that serializers, parsers, or transforms should be inherited from parent-class-to-class or class-to-method.
Example:

@RestOp( // Override the serializers for this method, but also inherit the serializers from the class. // Class-level serializers will be inserted in the location in the array. serializers={JsonSerializer.class, Inherit.class}, // Override the parsers for this method, but also inherit the parsers from the class. // Class-level parsers will be inserted in the location in the array. parsers={JsonParser.class, Inherit.class}, // Override the bean filters for this method, but also inherit the bean filters from the class. // Overridden bean filters only apply to NEW serializers and parsers defined on the method // (not those inherited from the class). beanFilters={MyFilter.class, Inherit.class}, // Override the POJO swaps for this method, but also inherit the POJO swaps from the class. // Overridden POJO swaps only apply to NEW serializers and parsers defined on the method // (not those inherited from the class). swaps={MySwap.class, Inherit.class} )

See Also:
  • Constructor Details