/projects/jboss-5.1.0/server/src/main/org/jboss/jms/jndi/JMSProviderAdapter.java

https://gitlab.com/essere.lab.public/qualitas.class-corpus · Java · 115 lines · 19 code · 12 blank · 84 comment · 0 complexity · 16a0bf69b1d1ff8cec27343111a01003 MD5 · raw file

  1. /*
  2. * JBoss, Home of Professional Open Source.
  3. * Copyright 2008, Red Hat Middleware LLC, and individual contributors
  4. * as indicated by the @author tags. See the copyright.txt file in the
  5. * distribution for a 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. import javax.naming.Context;
  24. import javax.naming.NamingException;
  25. import java.io.Serializable;
  26. import java.util.Properties;
  27. /**
  28. * JMS Provider Adapter
  29. *
  30. * @author <a href="mailto:cojonudo14@hotmail.com">Hiram Chirino</a>
  31. * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
  32. * @author <a href="mailto:adrian@jboss.com">Adrian Brock</a>
  33. * @version $Revision: 81030 $
  34. */
  35. public interface JMSProviderAdapter extends Serializable
  36. {
  37. /**
  38. * This must return a context which can be closed.
  39. *
  40. * @return the context
  41. */
  42. Context getInitialContext() throws NamingException;
  43. /**
  44. * Set the provider name
  45. *
  46. * @param name the name
  47. */
  48. void setName(String name);
  49. /**
  50. * Get the provider name
  51. *
  52. * @return the name
  53. */
  54. String getName();
  55. /**
  56. * Set the properties
  57. *
  58. * @param properties the properties
  59. */
  60. void setProperties(Properties properties);
  61. /**
  62. * Get the properties
  63. *
  64. * @return the properties
  65. */
  66. Properties getProperties();
  67. /**
  68. * Get the jndi binding of the combined connection factory
  69. *
  70. * @return the jndi binding
  71. */
  72. String getFactoryRef();
  73. /**
  74. * Get the jndi binding of the queue connection factory
  75. *
  76. * @return the jndi binding
  77. */
  78. String getQueueFactoryRef();
  79. /**
  80. * Get the jndi binding of the topic connection factory
  81. *
  82. * @return the jndi binding
  83. */
  84. String getTopicFactoryRef();
  85. /**
  86. * Set the jndi binding of the combined connection factory
  87. *
  88. * @param newFactoryRef the jndi binding
  89. */
  90. void setFactoryRef(String newFactoryRef);
  91. /**
  92. * Set the jndi binding of the queue connection factory
  93. *
  94. * @param newQueueFactoryRef the jndi binding
  95. */
  96. void setQueueFactoryRef(String newQueueFactoryRef);
  97. /**
  98. * Set the jndi binding of the topic connection factory
  99. *
  100. * @param newTopicFactoryRef the jndi binding
  101. */
  102. void setTopicFactoryRef(String newTopicFactoryRef);
  103. }