org.mule.ra
Class MuleResourceAdapter

java.lang.Object
  extended byorg.mule.ra.MuleResourceAdapter
All Implemented Interfaces:
ResourceAdapter, Serializable

public class MuleResourceAdapter
extends Object
implements ResourceAdapter, Serializable

MuleResourceAdapter TODO

See Also:
Serialized Form

Field Summary
protected  Log logger
          logger used by this class
 
Constructor Summary
MuleResourceAdapter()
           
 
Method Summary
 void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec activationSpec)
           
 void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec activationSpec)
           
 boolean equals(Object o)
           
 BootstrapContext getBootstrapContext()
           
 String getConfigurationBuilder()
           
 String getConfigurations()
           
 MuleConnectionRequestInfo getInfo()
           
 String getPassword()
           
 String getUserName()
           
 XAResource[] getXAResources(ActivationSpec[] activationSpecs)
          We only connect to one resource manager per ResourceAdapter instance, so any ActivationSpec will return the same XAResource.
 int hashCode()
           
 void setConfigurationBuilder(String configbuilder)
           
 void setConfigurations(String configurations)
           
 void setPassword(String password)
           
 void setUserName(String userid)
           
 void start(BootstrapContext bootstrapContext)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Log logger
logger used by this class

Constructor Detail

MuleResourceAdapter

public MuleResourceAdapter()
Method Detail

start

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

stop

public void stop()
Specified by:
stop in interface ResourceAdapter
See Also:
ResourceAdapter.stop()

getBootstrapContext

public BootstrapContext getBootstrapContext()
Returns:
the bootstrap context for this adapter

endpointActivation

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

endpointDeactivation

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

getXAResources

public XAResource[] getXAResources(ActivationSpec[] activationSpecs)
                            throws ResourceException
We only connect to one resource manager per ResourceAdapter instance, so any ActivationSpec will return the same XAResource.

Specified by:
getXAResources in interface ResourceAdapter
Throws:
ResourceException
See Also:
ResourceAdapter.getXAResources(javax.resource.spi.ActivationSpec[])

getPassword

public String getPassword()
Returns:

getConfigurations

public String getConfigurations()
Returns:

getUserName

public String getUserName()
Returns:

setPassword

public void setPassword(String password)
Parameters:
password -

setConfigurations

public void setConfigurations(String configurations)
Parameters:
configurations -

setUserName

public void setUserName(String userid)
Parameters:
userid -

getConfigurationBuilder

public String getConfigurationBuilder()

setConfigurationBuilder

public void setConfigurationBuilder(String configbuilder)

getInfo

public MuleConnectionRequestInfo getInfo()
Returns:
Returns the info.

equals

public boolean equals(Object o)

hashCode

public int hashCode()


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.