org.jboss.jca.adapters.mail
Class MailResourceAdapter

java.lang.Object
  extended by org.jboss.jca.adapters.mail.MailResourceAdapter
All Implemented Interfaces:
javax.resource.spi.ResourceAdapter

public class MailResourceAdapter
extends Object
implements javax.resource.spi.ResourceAdapter

The mail resource adapter

Author:
Scott Stark, Jesper Pedersen

Constructor Summary
MailResourceAdapter()
          Constructor
 
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 other)
          
 Integer getQueueSize()
          Get the queue size
 XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
          
 int hashCode()
          
 void setQueueSize(Integer v)
          Set the queue size
 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

MailResourceAdapter

public MailResourceAdapter()
Constructor

Method Detail

getQueueSize

public Integer getQueueSize()
Get the queue size

Returns:
The value

setQueueSize

public void setQueueSize(Integer v)
Set the queue size

Parameters:
v - The value

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

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

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object other)

Overrides:
equals in class Object


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)