org.ow2.jonas.ejb.easybeans
Class JOnASResourceAdapterFinder

java.lang.Object
  extended by org.ow2.jonas.ejb.easybeans.JOnASResourceAdapterFinder
All Implemented Interfaces:
org.ow2.easybeans.container.mdb.helper.IResourceAdapterFinder

public class JOnASResourceAdapterFinder
extends Object
implements org.ow2.easybeans.container.mdb.helper.IResourceAdapterFinder

Allow to find the Resource Adapter object for a given JNDI name.

Author:
Florent BENOIT

Constructor Summary
JOnASResourceAdapterFinder()
           
 
Method Summary
 ResourceAdapter getResourceAdapter(String jndiName)
          Gets the resource adapter object for the given jndi name (activation spec) and the given embedded object.
 void setEasyBeansService(EasyBeansService easyBeansService)
          Sets the easybeans service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOnASResourceAdapterFinder

public JOnASResourceAdapterFinder()
Method Detail

setEasyBeansService

public void setEasyBeansService(EasyBeansService easyBeansService)
Sets the easybeans service.

Parameters:
easyBeansService - the given service to set.

getResourceAdapter

public ResourceAdapter getResourceAdapter(String jndiName)
                                   throws ResourceException
Gets the resource adapter object for the given jndi name (activation spec) and the given embedded object.

Specified by:
getResourceAdapter in interface org.ow2.easybeans.container.mdb.helper.IResourceAdapterFinder
Parameters:
jndiName - the name of the activation spec bound in the registry
Returns:
an instance of the resource adapter that provides the MDB activation spec.
Throws:
ResourceException - if an error occurs while trying to get the resource adapter.


Copyright © 2010 OW2 Consortium. All Rights Reserved.