com.hazelcast.jca
Class ConnectionFactoryImpl

java.lang.Object
  extended by com.hazelcast.jca.ConnectionFactoryImpl
All Implemented Interfaces:
HazelcastConnectionFactory, Serializable, Referenceable, javax.resource.cci.ConnectionFactory

public class ConnectionFactoryImpl
extends Object
implements HazelcastConnectionFactory

Small facade to bring together container's pooling mechanism and other vendor-specific calls with the real implementation classes of this resource adapter

See Also:
Serialized Form

Constructor Summary
ConnectionFactoryImpl()
           
ConnectionFactoryImpl(ManagedConnectionFactoryImpl mcf, javax.resource.spi.ConnectionManager cm)
           
 
Method Summary
 boolean equals(Object obj)
           
 HazelcastConnection getConnection()
           
 HazelcastConnection getConnection(javax.resource.cci.ConnectionSpec connSpec)
           
 javax.resource.cci.ResourceAdapterMetaData getMetaData()
           
 javax.resource.cci.RecordFactory getRecordFactory()
           
 Reference getReference()
           
 int hashCode()
           
 void setId(int id)
           
 void setReference(Reference ref)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionFactoryImpl

public ConnectionFactoryImpl()

ConnectionFactoryImpl

public ConnectionFactoryImpl(ManagedConnectionFactoryImpl mcf,
                             javax.resource.spi.ConnectionManager cm)
Method Detail

getConnection

public HazelcastConnection getConnection()
                                  throws javax.resource.ResourceException
Specified by:
getConnection in interface HazelcastConnectionFactory
Specified by:
getConnection in interface javax.resource.cci.ConnectionFactory
Returns:
access to the real bridging object to access Hazelcast's infrastructure
Throws:
javax.resource.ResourceException
See Also:
HazelcastConnection

getConnection

public HazelcastConnection getConnection(javax.resource.cci.ConnectionSpec connSpec)
                                  throws javax.resource.ResourceException
Specified by:
getConnection in interface HazelcastConnectionFactory
Specified by:
getConnection in interface javax.resource.cci.ConnectionFactory
Returns:
access to the real bridging object to access Hazelcast's infrastructure
Throws:
javax.resource.ResourceException
See Also:
HazelcastConnection

getMetaData

public javax.resource.cci.ResourceAdapterMetaData getMetaData()
                                                       throws javax.resource.ResourceException
Specified by:
getMetaData in interface javax.resource.cci.ConnectionFactory
Throws:
javax.resource.ResourceException

getRecordFactory

public javax.resource.cci.RecordFactory getRecordFactory()
                                                  throws javax.resource.ResourceException
Specified by:
getRecordFactory in interface javax.resource.cci.ConnectionFactory
Throws:
javax.resource.ResourceException

setReference

public void setReference(Reference ref)

getReference

public Reference getReference()
                       throws NamingException
Specified by:
getReference in interface Referenceable
Throws:
NamingException

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

setId

public void setId(int id)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.