A C D E F G H I L M N P R S T U

A

AbstractDispatcher - class net.sf.bus.spi.AbstractDispatcher.
Base dispatcher with some helper methods for concrete implementations Created: Sun Jul 21 14:10:32 2002
AbstractDispatcher() - Constructor for class net.sf.bus.spi.AbstractDispatcher
 
addChannel(ChannelConfig) - Method in class net.sf.bus.spi.MessageBusConfig
 
addChannelParam(String, String) - Method in class net.sf.bus.spi.ChannelConfig
 
addDispatcherParam(String, String) - Method in class net.sf.bus.spi.ChannelConfig
 
AsyncDispatcher - class net.sf.bus.spi.AsyncDispatcher.
Delivers messages to all subscribers in an asynchronous manner.
AsyncDispatcher() - Constructor for class net.sf.bus.spi.AsyncDispatcher
 
AsyncDispatcherProvider - class net.sf.bus.spi.AsyncDispatcherProvider.
Manages the instance creation of the AsyncDispatcher
AsyncDispatcherProvider() - Constructor for class net.sf.bus.spi.AsyncDispatcherProvider
 

C

ChannelConfig - class net.sf.bus.spi.ChannelConfig.
Represents the configuration for a channel, created either from the xml configuration file located from the classpath, or programmatically and added to the MessageBusConfig.
ChannelConfig() - Constructor for class net.sf.bus.spi.ChannelConfig
 
CompoundFilter - class net.sf.bus.spi.CompoundFilter.
A filter that evaluates the two given filters and returns true only if the two filters evaluate to true.
CompoundFilter(Filter, Filter) - Constructor for class net.sf.bus.spi.CompoundFilter
 
createFilter(SubscriberToken) - Method in class net.sf.bus.spi.AbstractDispatcher
 

D

DEFAULT_CHANNEL - Static variable in class net.sf.bus.MessageBus
Defines the channel name for the default channel that is always available
dispatch(Object, Iterator) - Method in class net.sf.bus.spi.AsyncDispatcher
 
dispatch(Object, Iterator) - Method in interface net.sf.bus.spi.Dispatcher
Dispatch the message using the given master list of subscribers
dispatch(Object, Iterator) - Method in class net.sf.bus.spi.SyncDispatcher
 
Dispatcher - interface net.sf.bus.spi.Dispatcher.
A dispatcher is responsible for the distribution of a message to a list of subscribers.
DispatcherProvider - interface net.sf.bus.spi.DispatcherProvider.
Manages the instance creation of dispatchers.

E

evaluate(Object) - Method in class net.sf.bus.spi.CompoundFilter
 
evaluate(Object) - Method in class net.sf.bus.spi.InstanceOfFilter
 

F

Filter - interface net.sf.bus.Filter.
A filter enables a subscriber to further refine the messages they are interested in, beyond the default class hierarchy filter executed on all published messages.

G

getChannel(String) - Method in class net.sf.bus.spi.MessageBusConfig
 
getChannelConfig(String) - Method in class net.sf.bus.spi.MessageBusImpl
 
getChannelName() - Method in class net.sf.bus.spi.ChannelConfig
 
getChannelParams() - Method in class net.sf.bus.spi.ChannelConfig
 
getChannels() - Method in class net.sf.bus.spi.MessageBusImpl
 
getChannels() - Method in class net.sf.bus.spi.MessageBusConfig
 
getChannelType() - Method in class net.sf.bus.spi.ChannelConfig
 
getDispatcher() - Method in interface net.sf.bus.spi.DispatcherProvider
Returns a dispatcher instance using its provision strategy
getDispatcher() - Method in class net.sf.bus.spi.SyncDispatcherProvider
 
getDispatcher() - Method in class net.sf.bus.spi.AsyncDispatcherProvider
 
getDispatcher(ChannelConfig) - Method in class net.sf.bus.spi.MessageBusImpl
 
getDispatcherClass() - Method in class net.sf.bus.spi.ChannelConfig
 
getDispatcherParams() - Method in class net.sf.bus.spi.ChannelConfig
 
getImplementationNames(Class) - Static method in class net.sf.bus.util.Services
Return a Set of names of implementations of the given service interface in the classloader from which this class was loaded.
getImplementationNames(Class, ClassLoader) - Static method in class net.sf.bus.util.Services
Return a List of names of implementations of the given service interface available in a given classloader.
getInstance() - Static method in class net.sf.bus.MessageBusFactory
Returns the singleton MessageBus for the VM
getNestedException() - Method in class net.sf.bus.util.NestedException
Returns the nested exception, or null if there isn't one
getSubscribersForChannel(String) - Method in class net.sf.bus.spi.MessageBusImpl
 

H

hasNestedException() - Method in class net.sf.bus.util.NestedException
Return true if there is a nested exception

I

InstanceOfFilter - class net.sf.bus.spi.InstanceOfFilter.
A filter that determines if the object being evaluated is an instance of the class being filtered for.
InstanceOfFilter(Class) - Constructor for class net.sf.bus.spi.InstanceOfFilter
 

L

log - Static variable in class net.sf.bus.spi.MessageBusImpl
 

M

MessageBus - class net.sf.bus.MessageBus.
The purpose of The Message Bus is to allow components to be loosely coupled, by enabling them to send and receive messages(or events) without knowing what components the messages are intended for or who sent them.
MessageBus() - Constructor for class net.sf.bus.MessageBus
 
MessageBusConfig - class net.sf.bus.spi.MessageBusConfig.
Represents the configuration of the MessageBus controller, including any specific channel configurations that need to be explicity defined.
MessageBusConfig() - Constructor for class net.sf.bus.spi.MessageBusConfig
 
MessageBusException - exception net.sf.bus.MessageBusException.
Base class for all Message Bus exceptions.
MessageBusException() - Constructor for class net.sf.bus.MessageBusException
Construct an empty exception
MessageBusException(String) - Constructor for class net.sf.bus.MessageBusException
Construct an exception with a message
MessageBusException(String, Throwable) - Constructor for class net.sf.bus.MessageBusException
Construct an exception with a nested exception and a message
MessageBusException(Throwable) - Constructor for class net.sf.bus.MessageBusException
Construct an exception with a nested exception
MessageBusFactory - class net.sf.bus.MessageBusFactory.
Manages a singleton copy of the MessageBus for the VM
MessageBusFactory() - Constructor for class net.sf.bus.MessageBusFactory
 
MessageBusImpl - class net.sf.bus.spi.MessageBusImpl.
MessageBus implementation Created: Sun Jul 14 21:51:37 2002
MessageBusImpl() - Constructor for class net.sf.bus.spi.MessageBusImpl
Creates a new MessageBusImpl instance and initializes itself using the default initialization rules as defined in MessageBus
MessageBusNotFoundException - exception net.sf.bus.MessageBusNotFoundException.
Indicates that a Message Bus provider was not located in the classpath, or an error occurred during provider instantiation
MessageBusNotFoundException() - Constructor for class net.sf.bus.MessageBusNotFoundException
Construct an empty exception
MessageBusNotFoundException(String) - Constructor for class net.sf.bus.MessageBusNotFoundException
Construct an exception with a message
MessageBusNotFoundException(String, Throwable) - Constructor for class net.sf.bus.MessageBusNotFoundException
Construct an exception with a nested exception and a message
MessageBusNotFoundException(Throwable) - Constructor for class net.sf.bus.MessageBusNotFoundException
Construct an exception with a nested exception
MessageBusSubscriber - interface net.sf.bus.MessageBusSubscriber.
A Subscriber receives callbacks when they have subscribed to a channel for a particular message type (or subtype) and an optional filter.

N

NestedException - exception net.sf.bus.util.NestedException.
Base class for all nested exceptions.
NestedException() - Constructor for class net.sf.bus.util.NestedException
Construct an empty exception
NestedException(String) - Constructor for class net.sf.bus.util.NestedException
Construct an exception with a message
NestedException(String, Throwable) - Constructor for class net.sf.bus.util.NestedException
Construct an exception with a nested exception and a message
NestedException(Throwable) - Constructor for class net.sf.bus.util.NestedException
Construct an exception with a nested exception
net.sf.bus - package net.sf.bus
 
net.sf.bus.spi - package net.sf.bus.spi
 
net.sf.bus.util - package net.sf.bus.util
 

P

printStackTrace(PrintStream) - Method in class net.sf.bus.util.NestedException
Send the stack trace to the given printstream.
printStackTrace(PrintWriter) - Method in class net.sf.bus.util.NestedException
Send the stack trace to the given printwriter.
processDispatch(Object, Iterator) - Method in class net.sf.bus.spi.AbstractDispatcher
 
publish(String, Object) - Method in class net.sf.bus.MessageBus
Publishes a message to The Message Bus that will be distributed to all subscribers that meet the following requirements: They are subscribed to the same channel They are subscribed to messages of the same type They didn't supply a filter during the subscription process, or the filter they supplied determines that the message should be passed to the subscriber.
publish(String, Object) - Method in class net.sf.bus.spi.MessageBusImpl
 

R

receiveMessage(Object) - Method in interface net.sf.bus.MessageBusSubscriber
The callback method when a message is received that matches the subscription criteria
reset() - Method in class net.sf.bus.spi.MessageBusImpl
 

S

Services - class net.sf.bus.util.Services.
Utility methods for handling META-INF/services files
Services() - Constructor for class net.sf.bus.util.Services
 
setChannelName(String) - Method in class net.sf.bus.spi.ChannelConfig
 
setChannelParams(HashMap) - Method in class net.sf.bus.spi.ChannelConfig
 
setChannels(List) - Method in class net.sf.bus.spi.MessageBusConfig
 
setChannelType(String) - Method in class net.sf.bus.spi.ChannelConfig
 
setDispatcherClass(String) - Method in class net.sf.bus.spi.ChannelConfig
 
setDispatcherParams(HashMap) - Method in class net.sf.bus.spi.ChannelConfig
 
subscribe(MessageBusSubscriber, String, Class) - Method in class net.sf.bus.MessageBus
Enables a component to subscribe to the given channel and message type.
subscribe(MessageBusSubscriber, String, Class) - Method in class net.sf.bus.spi.MessageBusImpl
 
subscribe(MessageBusSubscriber, String, Class, Filter) - Method in class net.sf.bus.MessageBus
Enables a component to subscribe to the given channel, message type, and add an additional filter.
subscribe(MessageBusSubscriber, String, Class, Filter) - Method in class net.sf.bus.spi.MessageBusImpl
 
SyncDispatcher - class net.sf.bus.spi.SyncDispatcher.
Delivers messages to all subscribers in a synchronous manner.
SyncDispatcher() - Constructor for class net.sf.bus.spi.SyncDispatcher
 
SyncDispatcherProvider - class net.sf.bus.spi.SyncDispatcherProvider.
Manages the instance creation of the SyncDispatcher
SyncDispatcherProvider() - Constructor for class net.sf.bus.spi.SyncDispatcherProvider
 

T

toString() - Method in class net.sf.bus.util.NestedException
Returns a combination of this exception's message (if any) and the nested exception's toString() (if any)
toString() - Method in class net.sf.bus.spi.ChannelConfig
 

U

unsubscribe(MessageBusSubscriber, String, Class) - Method in class net.sf.bus.MessageBus
Removes a component from an existing subscription
unsubscribe(MessageBusSubscriber, String, Class) - Method in class net.sf.bus.spi.MessageBusImpl
 

A C D E F G H I L M N P R S T U

This code may be freely distributed and modified under the terms of the GNU Lesser General Public Licence..