Package org.jboss.as.webservices.deployers

Source Code of org.jboss.as.webservices.deployers.WebServicesContextJndiSetupProcessor

package org.jboss.as.webservices.deployers;

import org.jboss.as.ee.component.Attachments;
import org.jboss.as.ee.component.deployers.EEResourceReferenceProcessorRegistry;
import org.jboss.as.server.deployment.DeploymentPhaseContext;
import org.jboss.as.server.deployment.DeploymentUnit;
import org.jboss.as.server.deployment.DeploymentUnitProcessingException;
import org.jboss.as.server.deployment.DeploymentUnitProcessor;

/**
* @author Stuart Douglas
*/
public class WebServicesContextJndiSetupProcessor  implements DeploymentUnitProcessor {
    @Override
    public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
        final EEResourceReferenceProcessorRegistry registry = deploymentUnit.getAttachment(Attachments.RESOURCE_REFERENCE_PROCESSOR_REGISTRY);
        // Add a EEResourceReferenceProcessor which handles @Resource references of type WebServiceContext.
        registry.registerResourceReferenceProcessor(new WebServiceContextResourceProcessor());
    }

    @Override
    public void undeploy(final DeploymentUnit context) {

    }
}
TOP

Related Classes of org.jboss.as.webservices.deployers.WebServicesContextJndiSetupProcessor

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.