org.rhq.enterprise.communications
Interface ServiceContainerSenderCreationListener


public interface ServiceContainerSenderCreationListener

A ServiceContainer may create new senders - for example, when a remote stream is being received by a remote client and a sender is created in order to retrieve the stream data from the client. Because senders are typically a highly configured object and because the service container won't know all the different configurations a sender needs to have, this listener object is used to notify other objects when a sender object is created by the service container. Listeners are registered on the service container; when the service container creates a new sender object, the listeners are notified, giving them an opportunity to complete the configuration of the sender.

Author:
John Mazzitelli

Method Summary
 void postCreate(ServiceContainer serviceContainer, ClientCommandSender sender)
          Called when the given service container has finished creating the given sender.
 void preCreate(ServiceContainer serviceContainer, RemoteCommunicator remoteCommunicator, ClientCommandSenderConfiguration senderConfiguration)
          Called when the given service container is going to create a sender.
 

Method Detail

preCreate

void preCreate(ServiceContainer serviceContainer,
               RemoteCommunicator remoteCommunicator,
               ClientCommandSenderConfiguration senderConfiguration)
Called when the given service container is going to create a sender. The implementation of this method is allowed to modify the communicator and configuration as it sees fit.

Parameters:
serviceContainer - the service container that is creating the sender
remoteCommunicator - the communicator that will be used by the sender
senderConfiguration - the actual configuration for the sender

postCreate

void postCreate(ServiceContainer serviceContainer,
                ClientCommandSender sender)
Called when the given service container has finished creating the given sender.

Parameters:
serviceContainer - the service container that created the sender
sender - the sender that was just created


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.