That capability does not yet exist, though I have been thinking about it. I'd really like to wait until the JBoss micro container is complete before tackling this. This is because, to me at least, simply specifying the listener class to use to respond to various events is not nearly as useful as the ability to specify the exact instances to use (so they can collaborate, etc).
One potential interim solution would be something like adding an interface that users can implement and then register with the MBean. The interface impl would be responsible for telling the MBean the listeners to use. Maybe something like:
Code:
public interface ListenerProducer {
/**
* Produce a map of listener instances, keyed
* by the "event type".
*/
public Map produceListeners();
}
The MBean would then have a ListenerProducerImpl managed attribute, which would name the impl class. The MBean would instantiate it and iterate the return from produceListeners(), registering each indicated listener with the Configuration prior to building the SF.