Arch4J 1.1

org.arch4j.messaging
Class MessagingProvider

java.lang.Object
  |
  +--org.arch4j.messaging.MessagingProvider

public class MessagingProvider
extends Object

This class is the main provider for messaging services. The services are accessed via the static getProvider() method.

As an example of access to the services:

MessageQueueFacade qFacade = MessagingProvider.getProvider().getMessageQueueFacade(false);

Version:
1.0
Author:
David Colwell

Field Summary
protected  String MESSAGE_QUEUE_FACADE_CLASS_PROPERTY
          The message queue facade implementation class property name.
protected  String MESSAGE_TOPIC_FACADE_CLASS_PROPERTY
          The message topic facade implementation class property name.
protected  String MESSAGING_DOMAIN
          The base services property file name.
 
Constructor Summary
protected MessagingProvider()
          This is made protected so the only way to access this class is through the getProvider method.
 
Method Summary
protected  Object createInstance(Class aClass)
          Create an instance from the Class.
 MessageQueueFacade getMessageQueueFacade(boolean isTransactional)
          Returns a reference to a new MessageQueueFacade implementation.
 MessageQueueFacade getMessageQueueFacade(boolean isTransactional, int acknowledgeMode)
          Returns a reference to a new MessageQueueFacade implementation.
protected  Class getMessageQueueFacadeClass()
          Get the message queue facade implementation class to use from the property setting.
 MessageTopicFacade getMessageTopicFacade(boolean isTransactional)
          Returns a reference to a new MessageTopicFacade implementation.
 MessageTopicFacade getMessageTopicFacade(boolean isTransactional, int acknowledgeMode)
          Returns a reference to a new MessageTopicFacade implementation.
protected  Class getMessageTopicFacadeClass()
          Get the message topic facade implementation class to use from the property setting.
static MessagingProvider getProvider()
          Returns the singleton instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGING_DOMAIN

protected final String MESSAGING_DOMAIN
The base services property file name.

See Also:
Constant Field Values

MESSAGE_QUEUE_FACADE_CLASS_PROPERTY

protected final String MESSAGE_QUEUE_FACADE_CLASS_PROPERTY
The message queue facade implementation class property name.

See Also:
Constant Field Values

MESSAGE_TOPIC_FACADE_CLASS_PROPERTY

protected final String MESSAGE_TOPIC_FACADE_CLASS_PROPERTY
The message topic facade implementation class property name.

See Also:
Constant Field Values
Constructor Detail

MessagingProvider

protected MessagingProvider()
This is made protected so the only way to access this class is through the getProvider method.

Method Detail

getProvider

public static MessagingProvider getProvider()
Returns the singleton instance of this class.


getMessageQueueFacade

public MessageQueueFacade getMessageQueueFacade(boolean isTransactional)
Returns a reference to a new MessageQueueFacade implementation.


getMessageQueueFacade

public MessageQueueFacade getMessageQueueFacade(boolean isTransactional,
                                                int acknowledgeMode)
Returns a reference to a new MessageQueueFacade implementation.


getMessageTopicFacade

public MessageTopicFacade getMessageTopicFacade(boolean isTransactional)
Returns a reference to a new MessageTopicFacade implementation.


getMessageTopicFacade

public MessageTopicFacade getMessageTopicFacade(boolean isTransactional,
                                                int acknowledgeMode)
Returns a reference to a new MessageTopicFacade implementation.


getMessageQueueFacadeClass

protected Class getMessageQueueFacadeClass()
Get the message queue facade implementation class to use from the property setting.

Throws:
EnvironmentalException - if unable to retrieve the classname property or associate a Class object with the classname.

getMessageTopicFacadeClass

protected Class getMessageTopicFacadeClass()
Get the message topic facade implementation class to use from the property setting.

Throws:
EnvironmentalException - if unable to retrieve the classname property or associate a Class object with the classname.

createInstance

protected Object createInstance(Class aClass)
Create an instance from the Class.

Throws:
EnvironmentalException - if fails to create a new instance of the Class.

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.