/* */ package org.jboss.wsf.stack.jbws;
/* */
/* */ import org.jboss.ws.core.server.ServiceEndpointInvoker;
/* */ import org.jboss.ws.core.server.ServiceEndpointInvokerEJB21;
/* */ import org.jboss.wsf.spi.deployment.Deployment;
/* */ import org.jboss.wsf.spi.deployment.Deployment.DeploymentType;
/* */ import org.jboss.wsf.spi.deployment.DeploymentAspect;
/* */ import org.jboss.wsf.spi.deployment.Endpoint;
/* */ import org.jboss.wsf.spi.deployment.Service;
/* */
/* */ public class ServiceEndpointInvokerDeploymentAspect extends DeploymentAspect
/* */ {
/* */ public void create(Deployment dep)
/* */ {
/* 44 */ for (Endpoint ep : dep.getService().getEndpoints())
/* */ {
/* 46 */ ServiceEndpointInvoker epInvoker = (ServiceEndpointInvoker)ep.getAttachment(ServiceEndpointInvoker.class);
/* 47 */ if (epInvoker == null)
/* */ {
/* 49 */ Deployment.DeploymentType depType = ep.getService().getDeployment().getType();
/* 50 */ if (depType == Deployment.DeploymentType.JAXRPC_EJB21)
/* */ {
/* 52 */ epInvoker = new ServiceEndpointInvokerEJB21();
/* */ }
/* */ else
/* */ {
/* 56 */ epInvoker = new ServiceEndpointInvoker();
/* */ }
/* 58 */ ep.addAttachment(ServiceEndpointInvoker.class, epInvoker);
/* 59 */ epInvoker.init(ep);
/* */ }
/* */ }
/* */ }
/* */ }
/* Location: /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name: org.jboss.wsf.stack.jbws.ServiceEndpointInvokerDeploymentAspect
* JD-Core Version: 0.6.0
*/