KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > server > container > ServerConsumerInterceptor


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
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 consumer
15  *
16  * @author <a HREF="mailto:adrian@jboss.org>Adrian Brock</a>
17  * @version $Revision: 1.3 $
18  */

19 public class ServerConsumerInterceptor
20    implements Interceptor
21 {
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 JavaDoc getName()
37    {
38       return "ServerConsumerInterceptor";
39    }
40
41    public Object JavaDoc invoke(Invocation invocation) throws Throwable JavaDoc
42    {
43       MethodInvocation mi = (MethodInvocation) invocation;
44       throw new UnsupportedOperationException JavaDoc(mi.getMethod().toString());
45    }
46
47    // Protected ------------------------------------------------------
48

49    // Package Private ------------------------------------------------
50

51    // Private --------------------------------------------------------
52

53    // Inner Classes --------------------------------------------------
54

55 }
56
Popular Tags