MessageQueueFactory

Creates IMessageQueue components based on their descriptors.

Extends: Factory

Implements: IMessageQueueFactory, IConfigurable, IReferenceable

Description

The MessageQueueFactory class allows you to create IMessageQueue components based on their descriptors.

Fields

_config

Configuration paramters

protected ConfigParams _config;

_references

References used to locate the component dependencies

protected IReferences _references;

Abstract methods

createQueue

Creates a message queue component and assigns its name.

public abstract IMessageQueue createQueue(String name) throws ReferenceException;

  • name: String - name of the created message queue.
  • returns: IMessageQueue - message queue

Instance methods

configure

Configures the component by passing its configuration parameters.

public void configure(ConfigParams config) throws ConfigException

  • config: ConfigParams - configuration parameters to be set.

setReferences

Sets references to dependent components.

public void setReferences(IReferences references) throws ReferenceException, ConfigException

  • references: IReferences - references to locate the component dependencies.

See also