org.jboss.jca.embedded
Class EmbeddedJCA

java.lang.Object
  extended by org.jboss.jca.embedded.EmbeddedJCA

public class EmbeddedJCA
extends Object

The embedded IronJacamar container

Author:
Jesper Pedersen

Constructor Summary
EmbeddedJCA()
          Constructs an embedded JCA environment using the full JCA 1.6 profile
EmbeddedJCA(boolean fullProfile)
          Constructs an embedded JCA environment.
 
Method Summary
 void deploy(Class<?> clz)
          Deploy
 void deploy(ClassLoader cl, String name)
          Deploy
 void deploy(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive raa)
          Deploy
 void deploy(URL url)
          Deploy
<T> T
lookup(String name, Class<T> expectedType)
          Lookup a bean
 void shutdown()
          Shutdown
 void startup()
          Startup
 void undeploy(Class<?> clz)
          Undeploy
 void undeploy(ClassLoader cl, String name)
          Undeploy
 void undeploy(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive raa)
          Undeploy
 void undeploy(URL url)
          Undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedJCA

public EmbeddedJCA()
Constructs an embedded JCA environment using the full JCA 1.6 profile


EmbeddedJCA

public EmbeddedJCA(boolean fullProfile)
Constructs an embedded JCA environment. If fullProfile is true then a full JCA 1.6 container is initialized - otherwise only the basic kernel is initialized and services has to be added as deployments

Parameters:
fullProfile - Should a full profile be initialized
Method Detail

startup

public void startup()
             throws Throwable
Startup

Throws:
Throwable - If an error occurs

shutdown

public void shutdown()
              throws Throwable
Shutdown

Throws:
Throwable - If an error occurs

lookup

public <T> T lookup(String name,
                    Class<T> expectedType)
         throws Throwable
Lookup a bean

Parameters:
name - The bean name
expectedType - The expected type for the bean
Returns:
The bean instance
Throws:
Throwable - If an error occurs

deploy

public void deploy(URL url)
            throws Throwable
Deploy

Parameters:
url - The resource url
Throws:
Throwable - If an error occurs

deploy

public void deploy(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive raa)
            throws Throwable
Deploy

Parameters:
raa - The resource adapter archive
Throws:
Throwable - If an error occurs

deploy

public void deploy(ClassLoader cl,
                   String name)
            throws Throwable
Deploy

Parameters:
cl - The class loader
name - The resource name
Throws:
Throwable - If an error occurs

deploy

public void deploy(Class<?> clz)
            throws Throwable
Deploy

Parameters:
clz - The class
Throws:
Throwable - If an error occurs

undeploy

public void undeploy(URL url)
              throws Throwable
Undeploy

Parameters:
url - The resource url
Throws:
Throwable - If an error occurs

undeploy

public void undeploy(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive raa)
              throws Throwable
Undeploy

Parameters:
raa - The resource adapter archive
Throws:
Throwable - If an error occurs

undeploy

public void undeploy(ClassLoader cl,
                     String name)
              throws Throwable
Undeploy

Parameters:
cl - The class loader
name - The resource name
Throws:
Throwable - If an error occurs

undeploy

public void undeploy(Class<?> clz)
              throws Throwable
Undeploy

Parameters:
clz - The class
Throws:
Throwable - If an error occurs


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