01: /*
02: * JBoss, Home of Professional Open Source.
03: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
04: * as indicated by the @author tags. See the copyright.txt file in the
05: * distribution for a full listing of individual contributors.
06: *
07: * This is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU Lesser General Public License as
09: * published by the Free Software Foundation; either version 2.1 of
10: * the License, or (at your option) any later version.
11: *
12: * This software is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this software; if not, write to the Free
19: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21: */
22: package org.jboss.ejb;
23:
24: import org.jboss.invocation.Invocation;
25:
26: /**
27: * Provides the interface for all container interceptors.
28: *
29: * @author <a href="mailto:rickard.oberg@telkel.com">Rickard Öberg</a>
30: * @author <a href="mailto:marc.fleury@jboss.org">Marc Fleury</a>
31: * @version $Revision: 57209 $
32: *
33: *<p><b>20011219 marc fleury:</b>
34: * <ul>
35: * <li>Method Invocation is replaced by Invocation
36: *</ul>
37: */
38: public interface Interceptor extends ContainerPlugin {
39: /**
40: * Set the next interceptor in the chain.
41: *
42: * @param interceptor The next interceptor in the chain.
43: */
44: void setNext(Interceptor interceptor);
45:
46: /**
47: * Get the next interceptor in the chain.
48: *
49: * @return The next interceptor in the chain.
50: */
51: Interceptor getNext();
52:
53: /**
54: * ???
55: *
56: * @param mi ???
57: * @return ???
58: *
59: * @throws Exception ???
60: */
61: Object invokeHome(Invocation mi) throws Exception;
62:
63: /**
64: * ???
65: *
66: * @param mi ???
67: * @return ???
68: *
69: * @throws Exception ???
70: */
71: Object invoke(Invocation mi) throws Exception;
72: }
|