org.jboss.arquillian.openwebbeans
Class ShrinkWrapMetaDataDiscovery

java.lang.Object
  extended by org.apache.webbeans.spi.deployer.AbstractMetaDataDiscovery
      extended by org.jboss.arquillian.openwebbeans.ShrinkWrapMetaDataDiscovery
All Implemented Interfaces:
org.apache.webbeans.spi.ScannerService

public class ShrinkWrapMetaDataDiscovery
extends org.apache.webbeans.spi.deployer.AbstractMetaDataDiscovery

A ScannerService implementation that processes a ShrinkWrap bean archive

Arquillian supplies an in-memory ShrinkWrap archive which the test class is to use to load classes and resources. This implementation of the OpenWebBeans ScannerService SPI looks for the presence of a /META-INF/beans.xml in the ShrinkWrap archive. If present, it registers the location with the OpenWebBeans container, then proceeds to retrieve classes from that archive and pass them to the AnnotationDB to be scanned and processed as managed bean classes.

Author:
Dan Allen

Constructor Summary
ShrinkWrapMetaDataDiscovery(org.jboss.shrinkwrap.api.Archive<?> archive)
           
 
Method Summary
protected  void configure()
           
 
Methods inherited from class org.apache.webbeans.spi.deployer.AbstractMetaDataDiscovery
addWebBeansXmlLocation, getAnnotationDB, getBeanClasses, getBeanXmls, init, scan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShrinkWrapMetaDataDiscovery

public ShrinkWrapMetaDataDiscovery(org.jboss.shrinkwrap.api.Archive<?> archive)
Method Detail

configure

protected void configure()
                  throws Exception
Specified by:
configure in class org.apache.webbeans.spi.deployer.AbstractMetaDataDiscovery
Throws:
Exception


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.