1 /*2 * JBoss, the OpenSource J2EE webOS3 *4 * Distributable under LGPL license.5 * See terms of license at gnu.org.6 */7 package org.jboss.jms.server.container;8 9 import org.jboss.aop.advice.Interceptor;10 import org.jboss.aop.joinpoint.Invocation;11 import org.jboss.aop.joinpoint.MethodInvocation;12 13 /**14 * The server implementation of the consumer15 * 16 * @author <a HREF="mailto:adrian@jboss.org>Adrian Brock</a>17 * @version $Revision: 1.3 $18 */19 public class ServerConsumerInterceptor20 implements Interceptor21 {22 // Constants -----------------------------------------------------23 24 // Attributes ----------------------------------------------------25 26 // Static --------------------------------------------------------27 28 public static ServerConsumerInterceptor singleton = new ServerConsumerInterceptor();29 30 // Constructors --------------------------------------------------31 32 // Public --------------------------------------------------------33 34 // Interceptor implementation ------------------------------------35 36 public String getName()37 {38 return "ServerConsumerInterceptor";39 }40 41 public Object invoke(Invocation invocation) throws Throwable 42 {43 MethodInvocation mi = (MethodInvocation) invocation;44 throw new UnsupportedOperationException (mi.getMethod().toString()); 45 }46 47 // Protected ------------------------------------------------------48 49 // Package Private ------------------------------------------------50 51 // Private --------------------------------------------------------52 53 // Inner Classes --------------------------------------------------54 55 }56