ContactCenters
V. 0.9.9.

umontreal.iro.lecuyer.contactcenters.contact
Interface ContactFactory

All Known Subinterfaces:
DialerList
All Known Implementing Classes:
CallFactory, ContactListenerDialerList, DialerListNoQueueing, DialerListWithLimits, InfiniteDialerList, OutboundCallFactory, RandomTypeCallFactory, RandomTypeContactFactory, SimpleContactFactory, SingleTypeContactFactory, SingleTypeInfiniteDialerList

public interface ContactFactory

Allows contact sources to create contact objects of user-defined classes. When the Contact class is extended to add user-defined attributes, a contact factory must also be created to allow contact sources to instantiate objects derived from the Contact subclass. To construct a new contact factory, the user simply implements this interface to provide a newInstance() method the contact sources call to get contacts.


Method Summary
 Contact newInstance()
          Constructs and returns a new Contact object.
 

Method Detail

newInstance

Contact newInstance()
Constructs and returns a new Contact object. If a contact cannot be instantiated, a ContactInstantiationException is thrown.

Returns:
the new contact object.
Throws:
ContactInstantiationException - if a contact cannot be instantiated.

ContactCenters
V. 0.9.9.

To submit a bug or ask questions, send an e-mail to Richard Simard.