1 /* 2 * Copyright 2002-2018 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 module hunt.stomp.support.ChannelInterceptorAdapter; 18 19 20 // import hunt.stomp.Message; 21 // import hunt.stomp.MessageChannel; 22 23 // /** 24 // * A {@link ChannelInterceptor} base class with empty method implementations 25 // * as a convenience. 26 // * 27 // * @author Mark Fisher 28 // * @author Rossen Stoyanchev 29 // * @since 4.0 30 // * @deprecated as of 5.0.7 {@link ChannelInterceptor} has default methods (made 31 // * possible by a Java 8 baseline) and can be implemented directly without the 32 // * need for this no-op adapter 33 // */ 34 // @Deprecated 35 // abstract class ChannelInterceptorAdapter : ChannelInterceptor { 36 37 // override 38 // MessageBase preSend(MessageBase message, MessageChannel channel) { 39 // return message; 40 // } 41 42 // override 43 // void postSend(MessageBase message, MessageChannel channel, sent) { 44 // } 45 46 // override 47 // void afterSendCompletion(MessageBase message, MessageChannel channel, sent, Exception ex) { 48 // } 49 50 // preReceive(MessageChannel channel) { 51 // return true; 52 // } 53 54 // override 55 // MessageBase postReceive(MessageBase message, MessageChannel channel) { 56 // return message; 57 // } 58 59 // override 60 // void afterReceiveCompletion(MessageBase message, MessageChannel channel, Exception ex) { 61 // } 62 63 // }