org.jboss.jca.embedded.arquillian
Class EmbeddedJCATestEnricher

java.lang.Object
  extended by org.jboss.arquillian.testenricher.resource.ResourceInjectionEnricher
      extended by org.jboss.jca.embedded.arquillian.EmbeddedJCATestEnricher
All Implemented Interfaces:
org.jboss.arquillian.spi.TestEnricher

public class EmbeddedJCATestEnricher
extends org.jboss.arquillian.testenricher.resource.ResourceInjectionEnricher

TestEnricher implementation specific to the EmbeddedJCA container

Author:
Jesper Pedersen

Constructor Summary
EmbeddedJCATestEnricher()
          Constructor
 
Method Summary
protected  InitialContext createContext()
          Create a context
protected  Object lookup(String jndiName)
          Lookup an object in JNDI
 
Methods inherited from class org.jboss.arquillian.testenricher.resource.ResourceInjectionEnricher
enrich, getResourceName, getResourceName, injectClass, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedJCATestEnricher

public EmbeddedJCATestEnricher()
Constructor

Method Detail

lookup

protected Object lookup(String jndiName)
                 throws Exception
Lookup an object in JNDI

Overrides:
lookup in class org.jboss.arquillian.testenricher.resource.ResourceInjectionEnricher
Parameters:
jndiName - The JNDI name
Returns:
The object
Throws:
Exception - Thrown if the lookup can't be performed
See Also:
ResourceInjectionEnricher.lookup(java.lang.String)

createContext

protected InitialContext createContext()
                                throws Exception
Create a context

Returns:
The context
Throws:
Exception - Thrown if an error occurs


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)