Package org.jboss.weld.environment.deployment.discovery

Examples of org.jboss.weld.environment.deployment.discovery.BeanArchiveBuilder


    public BeanArchiveBuilder handle(String path) {
        if (!path.equals(WebAppBeanArchiveScanner.WEB_INF_CLASSES)) {
            return null;
        }

        BeanArchiveBuilder builder = new BeanArchiveBuilder();
        handleResourcePath(path, path, builder);
        return builder;
    }
View Full Code Here


public class ServletContextBeanArchiveHandlerTest {

    @Test
    public void testHandleResourcePath() {
        ServletContextBeanArchiveHandler handler = new ServletContextBeanArchiveHandler(new ServletContextMock());
        BeanArchiveBuilder builder = handler.handle(WebAppBeanArchiveScanner.WEB_INF_CLASSES);
        Collection<String> classes = builder.getClasses();
        assertEquals(4, classes.size());
        assertTrue(classes.contains("org.Alpha"));
        assertTrue(classes.contains("org.foo.Bravo"));
        assertTrue(classes.contains("org.foo.Charlie"));
        assertTrue(classes.contains("org.bar.Delta"));
View Full Code Here

        Index index = getIndex(urlPath);
        if (index == null) {
            return null;
        }

        BeanArchiveBuilder builder = new BeanArchiveBuilder().setAttribute(JandexDiscoveryStrategy.INDEX_ATTRIBUTE_NAME, index);
        handleArchiveByIndex(index, builder);
        return builder;
    }
View Full Code Here

    private final Indexer indexer = new Indexer();

    @Override
    public BeanArchiveBuilder handle(String path) {
        BeanArchiveBuilder builder = super.handle(path);
        builder.setAttribute(JandexDiscoveryStrategy.INDEX_ATTRIBUTE_NAME, buildIndex());
        return builder;
    }
View Full Code Here

TOP

Related Classes of org.jboss.weld.environment.deployment.discovery.BeanArchiveBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.