|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.messaging.MessagingProvider
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);
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 |
protected final String MESSAGING_DOMAIN
protected final String MESSAGE_QUEUE_FACADE_CLASS_PROPERTY
protected final String MESSAGE_TOPIC_FACADE_CLASS_PROPERTY
Constructor Detail |
protected MessagingProvider()
protected
so the only way to access this class is
through the getProvider
method.
Method Detail |
public static MessagingProvider getProvider()
public MessageQueueFacade getMessageQueueFacade(boolean isTransactional)
MessageQueueFacade
implementation.
public MessageQueueFacade getMessageQueueFacade(boolean isTransactional, int acknowledgeMode)
MessageQueueFacade
implementation.
public MessageTopicFacade getMessageTopicFacade(boolean isTransactional)
MessageTopicFacade
implementation.
public MessageTopicFacade getMessageTopicFacade(boolean isTransactional, int acknowledgeMode)
MessageTopicFacade
implementation.
protected Class getMessageQueueFacadeClass()
EnvironmentalException
- if unable to retrieve the classname property or associate a
Class
object with the classname.protected Class getMessageTopicFacadeClass()
EnvironmentalException
- if unable to retrieve the classname property or associate a
Class
object with the classname.protected Object createInstance(Class aClass)
Class
.
EnvironmentalException
- if fails to create a new instance of the Class
.
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |