agent.interaction.samples
Class SimpleConnector

java.lang.Object
  extended by agent.interaction.samples.SimpleConnector
All Implemented Interfaces:
java.awt.event.WindowListener, java.util.EventListener

public class SimpleConnector
extends java.lang.Object
implements java.awt.event.WindowListener

Connects to the Genesys servers. It uses the Connector Application Block class to do three main things:

  1. Connect to servers.
  2. Set a default file for logging.
  3. Get an interface to the internal AilFactory object.
The internal AilFactory object is itself available as an interface through which you access the core Agent Interaction Layer factory object — the AilFactory instantiates internal classes and makes them available through interfaces. You do not instantiate objects directly in your code.

As mentioned, you do not instantiate other AIL objects directly by using a constructor call. However, the AIL library provides a reference system of unique object IDs that are standard String objects. This allows your application to manipulate each object by passing its unique ID as a parameter to the methods of the AilFactory interface.

The AilFactory object is a Singleton. This means that only one instance of the AilFactory object exists at runtime. All AilFactory interfaces obtained through the AilLoader refer to this same object.


Field Summary
 AgentInteractionData agentInteractionData
          Data container to be used by further examples.
 com.genesyslab.ail.AilFactory ailFactory
          Factory to be used by further examples.
 com.genesyslab.ail.ContactManager contactManager
          Contact Manager to be used by further examples.
 
Constructor Summary
SimpleConnector()
          Uses data from an instance of AgentInteractionData to connect to an AilLoader.
 
Method Summary
 void windowActivated(java.awt.event.WindowEvent windowEvent)
           
 void windowClosed(java.awt.event.WindowEvent windowEvent)
           
 void windowClosing(java.awt.event.WindowEvent windowEvent)
          When you are finished using the Agent Interaction Layer, you should release the AilFactory: this method makes sure you release it.
 void windowDeactivated(java.awt.event.WindowEvent windowEvent)
           
 void windowDeiconified(java.awt.event.WindowEvent windowEvent)
           
 void windowIconified(java.awt.event.WindowEvent windowEvent)
           
 void windowOpened(java.awt.event.WindowEvent windowEvent)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ailFactory

public com.genesyslab.ail.AilFactory ailFactory
Factory to be used by further examples.


contactManager

public com.genesyslab.ail.ContactManager contactManager
Contact Manager to be used by further examples.


agentInteractionData

public AgentInteractionData agentInteractionData
Data container to be used by further examples.

Constructor Detail

SimpleConnector

public SimpleConnector()
Uses data from an instance of AgentInteractionData to connect to an AilLoader. After setting logging options, the AilLoader gets the static AilFactory and ContactManager.

At this point, the constructor sets up the data for the agent, place and DN used in the Interaction SDK Java code examples.

Method Detail

windowActivated

public void windowActivated(java.awt.event.WindowEvent windowEvent)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent windowEvent)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent windowEvent)
When you are finished using the Agent Interaction Layer, you should release the AilFactory: this method makes sure you release it.

Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent windowEvent)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent windowEvent)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent windowEvent)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent windowEvent)
Specified by:
windowOpened in interface java.awt.event.WindowListener