KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > client > p2p > P2PImplementation


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.client.p2p;
8
9 import javax.jms.JMSException JavaDoc;
10 import javax.naming.NamingException JavaDoc;
11 import javax.naming.Reference JavaDoc;
12
13 import org.jboss.jms.client.ConnectionDelegate;
14 import org.jboss.jms.client.ImplementationDelegate;
15
16 /**
17  * The p2p implementation
18  *
19  * @author <a HREF="mailto:nathan@jboss.org">Nathan Phelps</a>
20  * @author <a HREF="mailto:adrian@jboss.org>Adrian Brock</a>
21  * @version $Revision: 1.1 $
22  */

23 public class P2PImplementation
24    implements ImplementationDelegate
25 {
26    // Constants -----------------------------------------------------
27

28    // Attributes ----------------------------------------------------
29

30    // Static --------------------------------------------------------
31

32    // Constructors --------------------------------------------------
33

34    // Public --------------------------------------------------------
35

36    // ImplementationDelegate implementation -------------------------
37

38    public ConnectionDelegate createConnection(String JavaDoc userName, String JavaDoc password) throws JMSException JavaDoc
39    {
40       return new P2PConnectionDelegate(userName, password);
41    }
42
43    public Reference JavaDoc getReference() throws NamingException JavaDoc
44    {
45       return null;
46    }
47
48    // Protected ------------------------------------------------------
49

50    // Package Private ------------------------------------------------
51

52    // Private --------------------------------------------------------
53

54    // Inner Classes --------------------------------------------------
55

56 }
57
Popular Tags