KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > remoting > transport > mock > MockServerInvoker


1 /***************************************
2  * *
3  * JBoss: The OpenSource J2EE WebOS *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  ***************************************/

9 package org.jboss.remoting.transport.mock;
10
11 import org.jboss.remoting.InvokerLocator;
12 import org.jboss.remoting.ServerInvoker;
13
14 import java.util.Map JavaDoc;
15
16 /**
17  * MockServerInvoker
18  *
19  * @author <a HREF="mailto:jhaynie@vocalocity.net">Jeff Haynie</a>
20  * @version $Revision: 1.2.2.2 $
21  */

22 public class MockServerInvoker extends ServerInvoker
23 {
24    boolean loaded = false;
25
26    public MockServerInvoker(InvokerLocator locator)
27    {
28       super(locator);
29    }
30
31    public MockServerInvoker(InvokerLocator locator, Map JavaDoc configuration)
32    {
33       super(locator, configuration);
34    }
35
36    protected String JavaDoc getDefaultDataType()
37    {
38       return null;
39    }
40
41    public String JavaDoc getMBeanObjectName()
42    {
43       return "jboss.remoting:service=invoker,transport=mock";
44    }
45
46    /**
47     * returns true if the transport is bi-directional in nature, for example,
48     * SOAP in unidirectional and SOCKETs are bi-directional (unless behind a firewall
49     * for example).
50     *
51     * @return
52     */

53    public boolean isTransportBiDirectional()
54    {
55       return false;
56    }
57
58 }
59
Popular Tags