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()
          Deprecated. 
 String getConfigurationLocation()
           
 XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
           
 int hashCode()
           
 void setConfigLocation(String configLocation)
          Deprecated. 
 void setConfigurationLocation(String configurationLocation)
          Called by the container
 void setId(int id)
           
 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

setConfigurationLocation

public void setConfigurationLocation(String configurationLocation)
Called by the container

Parameters:
configurationLocation - Hazelcast's configuration location

getConfigurationLocation

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

setConfigLocation

@Deprecated
public void setConfigLocation(String configLocation)
Deprecated. 


getConfigLocation

@Deprecated
public String getConfigLocation()
Deprecated. 


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.