001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.juneau.rest.annotation; 018 019/** 020 * Dummy class that indicates that serializers, parsers, or transforms should be inherited from parent-class-to-class or class-to-method. 021 * 022 * <h5 class='section'>Example:</h5> 023 * <p class='bjava'> 024 * <ja>@RestOp</ja>( 025 * 026 * <jc>// Override the serializers for this method, but also inherit the serializers from the class. 027 * // Class-level serializers will be inserted in the location in the array.</jc> 028 * serializers={JsonSerializer.<jk>class</jk>, Inherit.<jk>class</jk>}, 029 * 030 * <jc>// Override the parsers for this method, but also inherit the parsers from the class. 031 * // Class-level parsers will be inserted in the location in the array.</jc> 032 * parsers={JsonParser.<jk>class</jk>, Inherit.<jk>class</jk>}, 033 * 034 * <jc>// Override the bean filters for this method, but also inherit the bean filters from the class. 035 * // Overridden bean filters only apply to NEW serializers and parsers defined on the method 036 * // (not those inherited from the class).</jc> 037 * beanFilters={MyFilter.<jk>class</jk>, Inherit.<jk>class</jk>}, 038 * 039 * <jc>// Override the POJO swaps for this method, but also inherit the POJO swaps from the class. 040 * // Overridden POJO swaps only apply to NEW serializers and parsers defined on the method 041 * // (not those inherited from the class).</jc> 042 * swaps={MySwap.<jk>class</jk>, Inherit.<jk>class</jk>} 043 * ) 044 * </p> 045 * 046 * <h5 class='section'>See Also:</h5><ul> 047 * </ul> 048 */ 049public class Inherit {}