Package org.jboss.as.weld.deployment

Examples of org.jboss.as.weld.deployment.WeldPortableExtensions


    public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
        final DeploymentUnit parent = deploymentUnit.getParent() == null ? deploymentUnit : deploymentUnit.getParent();

        if (WeldDeploymentMarker.isPartOfWeldDeployment(deploymentUnit)) {
            WeldPortableExtensions extensions = WeldPortableExtensions.getPortableExtensions(parent);
            extensions.registerExtensionInstance(new JSFPassivatingViewScopedCdiExtension(), parent);
        }
    }
View Full Code Here


        if (!XTSDeploymentMarker.isXTSAnnotationDeployment(unit)) {
            return;
        }

        final ClassLoader cl = unit.getAttachment(Attachments.MODULE).getClassLoader();
        WeldPortableExtensions extensions = WeldPortableExtensions.getPortableExtensions(unit);
        ClassLoader old = Thread.currentThread().getContextClassLoader();
        try {
            Thread.currentThread().setContextClassLoader(cl);
            for (String fqn : EXTENSIONS) {

                try {
                    final Class<?> extension = Class.forName(fqn, true, cl);
                    extensions.tryRegisterExtension(extension, unit);
                } catch (ClassNotFoundException e) {
                    throw new RuntimeException(e);
                }
            }
        } finally {
View Full Code Here

        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
        final DeploymentUnit parent = deploymentUnit.getParent() == null ? deploymentUnit : deploymentUnit.getParent();
        PropertyReplacer propertyReplacer = EJBAnnotationPropertyReplacement.propertyReplacer(deploymentUnit);

        if (WeldDeploymentMarker.isPartOfWeldDeployment(deploymentUnit)) {
            WeldPortableExtensions extensions = WeldPortableExtensions.getPortableExtensions(parent);
            extensions.registerExtensionInstance(new JMSCDIExtension(propertyReplacer), parent);
        }
    }
View Full Code Here

            if (!WeldDeploymentMarker.isPartOfWeldDeployment(deploymentUnit)) {
                return;
            }
        }

        WeldPortableExtensions extensions = WeldPortableExtensions.getPortableExtensions(deploymentUnit);

        final Module module = deploymentUnit.getAttachment(Attachments.MODULE);
        ClassLoader oldCl = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged();
        try {
            WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(module.getClassLoader());
View Full Code Here

        final DeploymentReflectionIndex index = deploymentUnit.getAttachment(Attachments.REFLECTION_INDEX);
        final Extension extension = loadExtension(CDIPortletContextExtension.class.getName(), index,  module.getClassLoader());

        log.debug("Loaded portable extension " + extension);

        WeldPortableExtensions wpe = WeldPortableExtensions.getPortableExtensions(deploymentUnit);
        wpe.registerExtensionInstance(extension, deploymentUnit);
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.weld.deployment.WeldPortableExtensions

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.