Examples of TCKMetaDataDiscoveryImpl


Examples of org.apache.webbeans.test.tck.mock.TCKMetaDataDiscoveryImpl

    protected DeploymentException excpetion;

    public void deployInternal(Iterable<Class<?>> classes) throws DeploymentException
    {
        // Scanner service
        final TCKMetaDataDiscoveryImpl discovery = (TCKMetaDataDiscoveryImpl) WebBeansContext.getInstance().getScannerService();

        // Lifecycle container
        this.lifeCycle = new StandaloneLifeCycle()
        {
            @Override
            protected void afterInitApplication(Properties event)
            {
                this.scannerService = discovery;
            }
        };

        try
        {
            Iterator<Class<?>> it = classes.iterator();
            while (it.hasNext())
            {
                discovery.addBeanClass(it.next());
            }

            this.lifeCycle.startApplication(null);

        }
View Full Code Here

Examples of org.apache.webbeans.test.tck.mock.TCKMetaDataDiscoveryImpl

    public boolean deployInternal(Iterable<Class<?>> classes, Iterable<URL> beansXmls)
    {
        try
        {
            final TCKMetaDataDiscoveryImpl discovery = (TCKMetaDataDiscoveryImpl) WebBeansContext.getInstance().getScannerService();

            // Lifecycle container
            this.lifeCycle = new StandaloneLifeCycle()
            {
                @Override
                protected void afterInitApplication(Properties event)
                {
                    this.scannerService = discovery;
                }
            };

            Iterator<Class<?>> it = classes.iterator();
            while (it.hasNext())
            {
                discovery.addBeanClass(it.next());
            }

            Iterator<URL> itUrl = beansXmls.iterator();
            while (itUrl.hasNext())
            {
                discovery.addBeanXml(itUrl.next());
            }

            this.lifeCycle.startApplication(null);
        }
        catch (Exception e)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.