KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > jndi > JMSProviderAdapter


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * 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.jms.jndi;
23
24 import javax.naming.Context JavaDoc;
25 import javax.naming.NamingException JavaDoc;
26 import java.io.Serializable JavaDoc;
27 import java.util.Properties JavaDoc;
28
29 /**
30  * JMS Provider Adapter
31  *
32  * @author <a HREF="mailto:cojonudo14@hotmail.com">Hiram Chirino</a>
33  * @author <a HREF="mailto:jason@planet57.com">Jason Dillon</a>
34  * @author <a HREF="mailto:adrian@jboss.com">Adrian Brock</a>
35  * @version $Revision: 38361 $
36  */

37 public interface JMSProviderAdapter extends Serializable JavaDoc
38 {
39    /**
40     * This must return a context which can be closed.
41     *
42     * @return the context
43     */

44    Context JavaDoc getInitialContext() throws NamingException JavaDoc;
45
46    /**
47     * Set the provider name
48     *
49     * @param name the name
50     */

51    void setName(String JavaDoc name);
52
53    /**
54     * Get the provider name
55     *
56     * @return the name
57     */

58    String JavaDoc getName();
59    
60    /**
61     * Set the properties
62     *
63     * @param properties the properties
64     */

65    void setProperties(Properties JavaDoc properties);
66    
67    /**
68     * Get the properties
69     *
70     * @return the properties
71     */

72    Properties JavaDoc getProperties();
73    
74    /**
75     * Get the jndi binding of the combined connection factory
76     *
77     * @return the jndi binding
78     */

79    String JavaDoc getFactoryRef();
80
81    /**
82     * Get the jndi binding of the queue connection factory
83     *
84     * @return the jndi binding
85     */

86    String JavaDoc getQueueFactoryRef();
87
88    /**
89     * Get the jndi binding of the topic connection factory
90     *
91     * @return the jndi binding
92     */

93    String JavaDoc getTopicFactoryRef();
94
95    /**
96     * Set the jndi binding of the combined connection factory
97     *
98     * @param newFactoryRef the jndi binding
99     */

100    void setFactoryRef(String JavaDoc newFactoryRef);
101
102    /**
103     * Set the jndi binding of the queue connection factory
104     *
105     * @param newQueueFactoryRef the jndi binding
106     */

107    void setQueueFactoryRef(String JavaDoc newQueueFactoryRef);
108
109    /**
110     * Set the jndi binding of the topic connection factory
111     *
112     * @param newTopicFactoryRef the jndi binding
113     */

114    void setTopicFactoryRef(String JavaDoc newTopicFactoryRef);
115 }
116
Popular Tags