/** * Creates new Web Service endpoint. * * @param endpointClass endpoint class name * @param endpointName endpoint name * @param dep deployment * @return WS endpoint */ protected final Endpoint newEndpoint(final String endpointClass, final String endpointName, final Deployment dep) { if (endpointName == null) { throw new NullPointerException("Null endpoint name"); } if (endpointClass == null) { throw new NullPointerException("Null endpoint class"); } final Endpoint endpoint = this.deploymentModelFactory.newEndpoint(endpointClass); endpoint.setShortName(endpointName); dep.getService().addEndpoint(endpoint); return endpoint; }
/** * Creates new Web Service endpoint. * * @param endpointClass endpoint class name * @param endpointName endpoint name * @param dep deployment * @return WS endpoint */ protected final Endpoint newEndpoint(final String endpointClass, final String endpointName, final Deployment dep) { if (endpointName == null) { throw new NullPointerException("Null endpoint name"); } if (endpointClass == null) { throw new NullPointerException("Null endpoint class"); } final Endpoint endpoint = this.deploymentModelFactory.newEndpoint(endpointClass); endpoint.setShortName(endpointName); dep.getService().addEndpoint(endpoint); return endpoint; }
/** * Creates new Web Service endpoint. * * @param endpointClass endpoint class name * @param endpointName endpoint name * @param dep deployment * @return WS endpoint */ protected final Endpoint newEndpoint(final String endpointClass, final String endpointName, final Deployment dep) { if (endpointName == null) { throw new NullPointerException("Null endpoint name"); } if (endpointClass == null) { throw new NullPointerException("Null endpoint class"); } final Endpoint endpoint = this.deploymentModelFactory.newEndpoint(endpointClass); endpoint.setShortName(endpointName); dep.getService().addEndpoint(endpoint); return endpoint; }
/** * Creates new Http Web Service endpoint. * * @param endpointClass endpoint class name * @param endpointName endpoint name * @param dep deployment * @return WS endpoint */ protected final Endpoint newHttpEndpoint(final String endpointClass, final String endpointName, final Deployment dep) { if (endpointName == null) throw MESSAGES.nullEndpointName(); if (endpointClass == null) throw MESSAGES.nullEndpointClass(); final Endpoint endpoint = this.deploymentModelFactory.newHttpEndpoint(endpointClass); endpoint.setShortName(endpointName); endpoint.setType(endpointType); dep.getService().addEndpoint(endpoint); return endpoint; }
/** * Creates new Http Web Service endpoint. * * @param endpointClass endpoint class name * @param endpointName endpoint name * @param dep deployment * @return WS endpoint */ protected final Endpoint newHttpEndpoint(final String endpointClass, final String endpointName, final Deployment dep) { if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName(); if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass(); final Endpoint endpoint = this.deploymentModelFactory.newHttpEndpoint(endpointClass); endpoint.setShortName(endpointName); endpoint.setType(endpointType); dep.getService().addEndpoint(endpoint); return endpoint; }
/** * Creates new Http Web Service endpoint. * * @param endpointClass endpoint class name * @param endpointName endpoint name * @param dep deployment * @return WS endpoint */ protected final Endpoint newHttpEndpoint(final String endpointClass, final String endpointName, final Deployment dep) { if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName(); if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass(); final Endpoint endpoint = this.deploymentModelFactory.newHttpEndpoint(endpointClass); endpoint.setShortName(endpointName); endpoint.setType(endpointType); dep.getService().addEndpoint(endpoint); return endpoint; }
@Override public Deployment createDeployment(DeploymentUnit unit) { ArchiveDeployment dep = newDeployment(unit); dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot())); dep.setRuntimeClassLoader(unit.getClassLoader()); dep.setType(getDeploymentType()); Service service = dep.getService(); Ejb3Deployment ejb3Deployment = unit.getAttachment(Ejb3Deployment.class); if (ejb3Deployment == null) throw new IllegalStateException("Deployment unit does not contain ejb3 deployment"); // Copy the attachments dep.addAttachment(Ejb3Deployment.class, ejb3Deployment); Iterator it = ejb3Deployment.getEjbContainers().values().iterator(); while (it.hasNext()) { EJBContainer container = (EJBContainer)it.next(); if (isWebServiceBean(container)) { String ejbName = container.getEjbName(); String epBean = container.getBeanClassName(); // Create the endpoint Endpoint ep = newEndpoint(epBean); ep.setShortName(ejbName); service.addEndpoint(ep); } } return dep; }
/** * Creates new JMS Web Service endpoint. * * @param endpointClass endpoint class name * @param endpointName endpoint name * @param dep deployment * @return WS endpoint */ protected final Endpoint newJMSEndpoint(final String endpointClass, final String endpointName, final String soapAddress, final Deployment dep) { if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName(); if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass(); final Endpoint endpoint = deploymentModelFactory.newJMSEndpoint(endpointClass); endpoint.setAddress(soapAddress); endpoint.setShortName(endpointName); endpoint.setType(endpointType); dep.getService().addEndpoint(endpoint); return endpoint; }
/** * Creates new JMS Web Service endpoint. * * @param endpointClass endpoint class name * @param endpointName endpoint name * @param dep deployment * @return WS endpoint */ protected final Endpoint newJMSEndpoint(final String endpointClass, final String endpointName, final String soapAddress, final Deployment dep) { if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName(); if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass(); final Endpoint endpoint = deploymentModelFactory.newJMSEndpoint(endpointClass); endpoint.setAddress(soapAddress); endpoint.setShortName(endpointName); endpoint.setType(endpointType); dep.getService().addEndpoint(endpoint); return endpoint; }
/** * Creates new JMS Web Service endpoint. * * @param endpointClass endpoint class name * @param endpointName endpoint name * @param dep deployment * @return WS endpoint */ protected final Endpoint newJMSEndpoint(final String endpointClass, final String endpointName, final String soapAddress, final Deployment dep) { if (endpointName == null) throw MESSAGES.nullEndpointName(); if (endpointClass == null) throw MESSAGES.nullEndpointClass(); final Endpoint endpoint = deploymentModelFactory.newJMSEndpoint(endpointClass); endpoint.setAddress(soapAddress); endpoint.setShortName(endpointName); endpoint.setType(endpointType); dep.getService().addEndpoint(endpoint); return endpoint; }
@Override public Deployment createDeployment(DeploymentInfo di) { ArchiveDeployment dep = newDeployment(di); dep.setRootFile(new URLLoaderAdapter(di.localUrl)); dep.setRuntimeClassLoader(null); dep.setType(getDeploymentType()); Service service = dep.getService(); WebMetaData webMetaData = (WebMetaData)di.metaData; if (webMetaData == null) throw new IllegalStateException("Deployment unit does not contain web meta data"); // Copy the attachments dep.addAttachment(WebMetaData.class, webMetaData); List<Servlet> servlets = getEndpointBeans(webMetaData, di.annotationsCl); for (Servlet servlet : servlets) { String servletName = servlet.getServletName(); String servletClass = servlet.getServletClass(); // Create the endpoint Endpoint ep = newEndpoint(servletClass); ep.setShortName(servletName); service.addEndpoint(ep); } return dep; }
@Override public Deployment createDeployment(DeploymentInfo di) { ArchiveDeployment dep = newDeployment(di); dep.setRootFile(new URLLoaderAdapter(di.localUrl)); dep.setRuntimeClassLoader(null); dep.setType(getDeploymentType()); Service service = dep.getService(); WebMetaData webMetaData = (WebMetaData)di.metaData; if (webMetaData == null) throw new IllegalStateException("Deployment unit does not contain web meta data"); // Copy the attachments dep.addAttachment(WebMetaData.class, webMetaData); List<Servlet> servlets = getEndpointBeans(webMetaData, di.annotationsCl); for (Servlet servlet : servlets) { String servletName = servlet.getServletName(); String servletClass = servlet.getServletClass(); // Create the endpoint Endpoint ep = newEndpoint(servletClass); ep.setShortName(servletName); service.addEndpoint(ep); } return dep; }
@Override public Deployment createDeployment(DeploymentInfo di) { ArchiveDeployment dep = newDeployment(di); dep.setRootFile(new URLLoaderAdapter(di.localUrl)); dep.setRuntimeClassLoader(null); dep.setType(getDeploymentType()); Service service = dep.getService(); WebMetaData webMetaData = (WebMetaData)di.metaData; if (webMetaData == null) throw new IllegalStateException("Deployment unit does not contain web meta data"); // Copy the attachments dep.addAttachment(WebMetaData.class, webMetaData); List<Servlet> servlets = getRelevantServlets(webMetaData, di.annotationsCl); for (Servlet servlet : servlets) { String servletName = servlet.getServletName(); String servletClass = servlet.getServletClass(); // Create the endpoint Endpoint ep = newEndpoint(servletClass); ep.setShortName(servletName); service.addEndpoint(ep); } return dep; }
@Override public Deployment createDeployment(DeploymentInfo di) { ArchiveDeployment dep = newDeployment(di); dep.setRootFile(new URLLoaderAdapter(di.localUrl)); dep.setRuntimeClassLoader(di.ucl); dep.setType(getDeploymentType()); Service service = dep.getService(); Ejb3ModuleMBean ejb3Module = EJBArchiveMetaDataAdapterEJB3.getEJB3Module(di.deployedObject); for (Object manager : ejb3Module.getContainers().values()) { if (manager instanceof EJBContainer) { EJBContainer container = (EJBContainer)manager; if (isWebServiceBean(container)) { String ejbName = container.getEjbName(); String epBean = container.getBeanClassName(); // Create the endpoint Endpoint ep = newEndpoint(epBean); ep.setShortName(ejbName); service.addEndpoint(ep); } } } return dep; }
@Override public Deployment createDeployment(DeploymentInfo di) { ArchiveDeployment dep = newDeployment(di); dep.setRootFile(new URLLoaderAdapter(di.localUrl)); dep.setRuntimeClassLoader(di.ucl); dep.setType(getDeploymentType()); Service service = dep.getService(); Ejb3ModuleMBean ejb3Module = EJBArchiveMetaDataAdapterEJB3.getEJB3Module(di.deployedObject); for (Object manager : ejb3Module.getContainers().values()) { if (manager instanceof EJBContainer) { EJBContainer container = (EJBContainer)manager; if (isWebServiceBean(container)) { String ejbName = container.getEjbName(); String epBean = container.getBeanClassName(); // Create the endpoint Endpoint ep = newEndpoint(epBean); ep.setShortName(ejbName); service.addEndpoint(ep); } } } return dep; }
@Override public Deployment createDeployment(DeploymentUnit unit) { ArchiveDeployment dep = newDeployment(unit); dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot())); dep.setType(getDeploymentType()); Service service = dep.getService(); JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class); if (webMetaData == null) throw new IllegalStateException("Deployment unit does not contain web meta data"); // Copy the attachments dep.addAttachment(JBossWebMetaData.class, webMetaData); List<ServletMetaData> servlets = getRelevantServlets(webMetaData, unit.getClassLoader()); for (ServletMetaData servlet : servlets) { String servletName = servlet.getName(); String targetBean = getTargetBean(servlet); // Create the endpoint Endpoint ep = newEndpoint(targetBean); ep.setShortName(servletName); service.addEndpoint(ep); } return dep; }
@Override public Deployment createDeployment(DeploymentUnit unit) { ArchiveDeployment dep = newDeployment(unit); dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot())); dep.setType(getDeploymentType()); Service service = dep.getService(); JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class); if (webMetaData == null) throw new IllegalStateException("Deployment unit does not contain web meta data"); // Copy the attachments dep.addAttachment(JBossWebMetaData.class, webMetaData); List<ServletMetaData> servlets = getRelevantServlets(webMetaData, unit.getClassLoader()); for (ServletMetaData servlet : servlets) { String servletName = servlet.getName(); String targetBean = getTargetBean(servlet); // Create the endpoint Endpoint ep = newEndpoint(targetBean); ep.setShortName(servletName); service.addEndpoint(ep); } return dep; }
@Override public Deployment createDeployment(DeploymentUnit unit) { ArchiveDeployment dep = newDeployment(unit); dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot())); dep.setType(getDeploymentType()); Service service = dep.getService(); JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class); if (webMetaData == null) throw new IllegalStateException("Deployment unit does not contain web meta data"); // Copy the attachments dep.addAttachment(JBossWebMetaData.class, webMetaData); List<ServletMetaData> servlets = getRelevantServlets(webMetaData, unit.getClassLoader()); for (ServletMetaData servlet : servlets) { String servletName = servlet.getName(); String targetBean = getTargetBean(servlet); // Create the endpoint Endpoint ep = newEndpoint(targetBean); ep.setShortName(servletName); service.addEndpoint(ep); } return dep; }
@Override public Deployment createDeployment(DeploymentUnit unit) { ArchiveDeployment dep = newDeployment(unit); dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot())); dep.setType(getDeploymentType()); Service service = dep.getService(); JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class); if (webMetaData == null) throw new IllegalStateException("Deployment unit does not contain web meta data"); // Copy the attachments dep.addAttachment(JBossWebMetaData.class, webMetaData); List<ServletMetaData> servlets = getRelevantServlets(webMetaData, unit.getClassLoader()); for (ServletMetaData servlet : servlets) { String servletName = servlet.getName(); String targetBean = getTargetBean(servlet); // Create the endpoint Endpoint ep = newEndpoint(targetBean); ep.setShortName(servletName); service.addEndpoint(ep); } return dep; }
@Override public Deployment createDeployment(DeploymentUnit unit) { ArchiveDeployment dep = newDeployment(unit); dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot())); dep.setType(getDeploymentType()); Service service = dep.getService(); JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class); if (webMetaData == null) throw new IllegalStateException("Deployment unit does not contain web meta data"); // Copy the attachments dep.addAttachment(JBossWebMetaData.class, webMetaData); List<ServletMetaData> servlets = getRelevantServlets(webMetaData, unit.getClassLoader()); for (ServletMetaData servlet : servlets) { String servletName = servlet.getName(); String targetBean = getTargetBean(servlet); // Create the endpoint Endpoint ep = newEndpoint(targetBean); ep.setShortName(servletName); service.addEndpoint(ep); } return dep; }