Email Answering System
Version 1.0

com.ninecode.email.connector
Class EmailDefaultConnectionManager

java.lang.Object
  |
  +--com.ninecode.email.connector.EmailDefaultConnectionManager
All Implemented Interfaces:
ConnectionManager, Serializable

public class EmailDefaultConnectionManager
extends Object
implements ConnectionManager

Generate javax.mail sessions wrapped for the Connector architecture.

Author:
Derrick Oswald
See Also:
Serialized Form

Constructor Summary
EmailDefaultConnectionManager()
          Creates a new instance of DefaultConnectionManager
 
Method Summary
 Object allocateConnection(ManagedConnectionFactory factory, ConnectionRequestInfo info)
          The method allocateConnection gets called by the resource adapter's connection factory instance.
 boolean equals(Object other)
          Returns true if the other object is equal to this one.
 int hashCode()
          Returns a hash code for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailDefaultConnectionManager

public EmailDefaultConnectionManager()
Creates a new instance of DefaultConnectionManager

Method Detail

equals

public boolean equals(Object other)
Returns true if the other object is equal to this one.

Overrides:
equals in class Object
Returns:
true if the other object is equal to this one.

hashCode

public int hashCode()
Returns a hash code for this object. The hashCode method is required to be implemented by the ConnectionSpec and ConnectionRequestInfo contracts.

Overrides:
hashCode in class Object
Returns:
The hash code for this object. This will depend on all the properties for this bean.

allocateConnection

public Object allocateConnection(ManagedConnectionFactory factory,
                                 ConnectionRequestInfo info)
                          throws ResourceException
The method allocateConnection gets called by the resource adapter's connection factory instance. This lets connection factory instance (provided by the resource adapter) pass a connection request to the ConnectionManager instance. The connectionRequestInfo parameter represents information specific to the resource adapter for handling of the connection request.

Specified by:
allocateConnection in interface ConnectionManager
Parameters:
factory - Used by application server to delegate connection matching/creation.
info - Connection request information.
Returns:
Connection handle with an EIS specific connection interface.
Throws:
ResourceException - Generic exception.
ApplicationServerInternalException - Application server specific exception.
SecurityException - Security related error.
ResourceAllocationException - Failed to allocate system resources for connection request.
ResourceAdapterInternalException - Resource adapter related error condition.

Email Answering System
Version 1.0

Copyright © 2003 Derrick Oswald. All rights reserved.