Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.hermes.broker
Class MessageBrokerContext  view MessageBrokerContext download MessageBrokerContext.java

java.lang.Object
  extended bycom.aendvari.hermes.broker.MessageBrokerContext

public class MessageBrokerContext
extends java.lang.Object

Provides context information for a MessageBroker.

A context may have several properties. The properties are stored in a (com.aendvari.common.properties.Properties) object, which allows them to be stored in a hierarchy.

The MessageBrokerContext may be subclassed to provide application specific information (for example, HTTP information, see com.aendvari.hermes.broker.http.HttpMessageBrokerContext).


Field Summary
protected  MessageBroker broker
          The MessageBroker that this context is for.
protected  com.aendvari.common.properties.Properties properties
          The (com.aendvari.common.properties.Properties) object that properties are stored in.
 
Constructor Summary
MessageBrokerContext()
          Constructs a MessageBrokerContext.
 
Method Summary
 MessageBrokerConnection createConnection()
          Creates a MessageBrokerConnection for the broker of this context.
 MessageBroker getBroker()
          Returns the MessageBroker for this context.
 com.aendvari.common.properties.Properties getProperties()
          Returns the com.aendvari.common.properties.Properties object for the storage and retrieval of context properties.
protected  void setBroker(MessageBroker setBroker)
          Sets the MessageBroker for this context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

broker

protected MessageBroker broker
The MessageBroker that this context is for.


properties

protected com.aendvari.common.properties.Properties properties
The (com.aendvari.common.properties.Properties) object that properties are stored in.

Constructor Detail

MessageBrokerContext

public MessageBrokerContext()
Constructs a MessageBrokerContext.

Method Detail

getBroker

public MessageBroker getBroker()
Returns the MessageBroker for this context.


setBroker

protected void setBroker(MessageBroker setBroker)
Sets the MessageBroker for this context.


getProperties

public com.aendvari.common.properties.Properties getProperties()
Returns the com.aendvari.common.properties.Properties object for the storage and retrieval of context properties.


createConnection

public MessageBrokerConnection createConnection()
Creates a MessageBrokerConnection for the broker of this context.