001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.jms.jndi;
023:
024: import java.util.Properties;
025:
026: import org.jboss.system.ServiceMBean;
027:
028: /**
029: * MBean interface.
030: *
031: * @author <a href="mailto:adrian@jboss.com">Adrian Brock</a>
032: * @version $Revision: 57209 $
033: */
034: public interface JMSProviderLoaderMBean extends ServiceMBean {
035: /**
036: * Set the provider name
037: *
038: * @param name the provider name
039: */
040: void setProviderName(String name);
041:
042: /**
043: * Get the provider name
044: *
045: * @return the provider name
046: */
047: String getProviderName();
048:
049: /**
050: * Set the provider adapter class
051: *
052: * @param clazz the class name
053: */
054: void setProviderAdapterClass(String clazz);
055:
056: /**
057: * Get the provider adapter class
058: *
059: * @return the class name
060: */
061: String getProviderAdapterClass();
062:
063: /**
064: * Set the provider properties
065: *
066: * @param properties the properties
067: */
068: void setProperties(Properties properties);
069:
070: /**
071: * Get the provider properties
072: *
073: * @return the properties
074: */
075: Properties getProperties();
076:
077: /**
078: * Set where the provider adapter is bound into jndi
079: *
080: * @param name the provider adapter jndi name
081: */
082: void setAdapterJNDIName(String name);
083:
084: /**
085: * Get where the provider adapter is bound into jndi
086: *
087: * @return the jndi binding
088: */
089: String getAdapterJNDIName();
090:
091: /**
092: * Set the jndi name of the unified connection factory
093: *
094: * @param newFactoryRef the jndi name
095: */
096: void setFactoryRef(String newFactoryRef);
097:
098: /**
099: * Set the jndi name of the queue connection factory
100: *
101: * @param newQueueFactoryRef the jndi name
102: */
103: void setQueueFactoryRef(String newQueueFactoryRef);
104:
105: /**
106: * Set the jndi name of the topic connection factory
107: *
108: * @param newTopicFactoryRef the jndi name
109: */
110: void setTopicFactoryRef(String newTopicFactoryRef);
111:
112: /**
113: * Get the jndi name of the unified connection factory
114: *
115: * @return the jndi name
116: */
117: String getFactoryRef();
118:
119: /**
120: * Get the jndi name of the queue connection factory
121: *
122: * @return the jndi name
123: */
124: String getQueueFactoryRef();
125:
126: /**
127: * Get the jndi name of the topic connection factory
128: *
129: * @return the jndi name
130: */
131: String getTopicFactoryRef();
132: }
|