com.hazelcast.jca
Class ResourceAdapterImpl

java.lang.Object
  extended by com.hazelcast.jca.ResourceAdapterImpl
All Implemented Interfaces:
Serializable, javax.resource.spi.ResourceAdapter

public class ResourceAdapterImpl
extends Object
implements javax.resource.spi.ResourceAdapter, Serializable

This is the starting point of the whole resource adapter for hazelcast. The hazelcast instance is created/fetched in this class

See Also:
Serialized Form

Constructor Summary
ResourceAdapterImpl()
           
 
Method Summary
 void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
           
 void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
           
 boolean equals(Object obj)
           
 String getConfigLocation()
           
 XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
           
 int hashCode()
           
 void setConfigLocation(String configLocation)
          Called by the container
 void start(javax.resource.spi.BootstrapContext ctx)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceAdapterImpl

public ResourceAdapterImpl()
Method Detail

endpointActivation

public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                               javax.resource.spi.ActivationSpec spec)
                        throws javax.resource.ResourceException
Specified by:
endpointActivation in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.ResourceException

endpointDeactivation

public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                                 javax.resource.spi.ActivationSpec spec)
Specified by:
endpointDeactivation in interface javax.resource.spi.ResourceAdapter

getXAResources

public XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
                            throws javax.resource.ResourceException
Specified by:
getXAResources in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.ResourceException

start

public void start(javax.resource.spi.BootstrapContext ctx)
           throws javax.resource.spi.ResourceAdapterInternalException
Specified by:
start in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.spi.ResourceAdapterInternalException

stop

public void stop()
Specified by:
stop in interface javax.resource.spi.ResourceAdapter

setConfigLocation

public void setConfigLocation(String configLocation)
Called by the container

Parameters:
configLocation - Hazelcast's configuration location

getConfigLocation

public String getConfigLocation()
Returns:
The configured hazelcast configuration location via RAR deployment descriptor

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


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