Search in sources :

Example 6 with JBossWebservicesMetaData

use of org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData in project wildfly by wildfly.

the class MetaDataBuilderJAXWS_EJB method buildEnterpriseBeansMetaData.

@Override
protected void buildEnterpriseBeansMetaData(final Deployment dep, final EJBArchiveMetaData.Builder ejbArchiveMDBuilder) {
    if (!WSHelper.isJaxwsJseDeployment(dep)) {
        // [AS7-1605] support
        final JBossWebMetaData jbossWebMD = WSHelper.getOptionalAttachment(dep, JBossWebMetaData.class);
        final String contextRoot = getContextRoot(dep, jbossWebMD);
        if (contextRoot != null) {
            final JSEArchiveMetaData.Builder jseArchiveMDBuilder = new JSEArchiveMetaData.Builder();
            jseArchiveMDBuilder.setContextRoot(contextRoot);
            dep.addAttachment(JSEArchiveMetaData.class, jseArchiveMDBuilder.build());
        }
    }
    final JAXWSDeployment jaxwsDeployment = WSHelper.getRequiredAttachment(dep, JAXWSDeployment.class);
    final List<EJBMetaData> wsEjbsMD = new LinkedList<EJBMetaData>();
    final JBossWebservicesMetaData jbossWebservicesMD = WSHelper.getOptionalAttachment(dep, JBossWebservicesMetaData.class);
    for (final EJBEndpoint jbossEjbMD : jaxwsDeployment.getEjbEndpoints()) {
        buildEnterpriseBeanMetaData(wsEjbsMD, jbossEjbMD, jbossWebservicesMD);
    }
    ejbArchiveMDBuilder.setEnterpriseBeans(wsEjbsMD);
}
Also used : EJBMetaData(org.jboss.wsf.spi.metadata.j2ee.EJBMetaData) JBossWebMetaData(org.jboss.metadata.web.jboss.JBossWebMetaData) JSEArchiveMetaData(org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData) JBossWebservicesMetaData(org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData) EJBEndpoint(org.jboss.as.webservices.metadata.model.EJBEndpoint) JAXWSDeployment(org.jboss.as.webservices.metadata.model.JAXWSDeployment) LinkedList(java.util.LinkedList)

Aggregations

JBossWebservicesMetaData (org.jboss.wsf.spi.metadata.webservices.JBossWebservicesMetaData)6 JBossWebMetaData (org.jboss.metadata.web.jboss.JBossWebMetaData)4 DeploymentUnit (org.jboss.as.server.deployment.DeploymentUnit)2 EJBEndpoint (org.jboss.as.webservices.metadata.model.EJBEndpoint)2 JAXWSDeployment (org.jboss.as.webservices.metadata.model.JAXWSDeployment)2 POJOEndpoint (org.jboss.as.webservices.metadata.model.POJOEndpoint)2 JSEArchiveMetaData (org.jboss.wsf.spi.metadata.j2ee.JSEArchiveMetaData)2 PublishLocationAdapter (org.jboss.wsf.spi.metadata.j2ee.PublishLocationAdapter)2 URL (java.net.URL)1 LinkedList (java.util.LinkedList)1 WebService (javax.jws.WebService)1 WebServiceProvider (javax.xml.ws.WebServiceProvider)1 ComponentDescription (org.jboss.as.ee.component.ComponentDescription)1 EEModuleClassDescription (org.jboss.as.ee.component.EEModuleClassDescription)1 CompositeIndex (org.jboss.as.server.deployment.annotation.CompositeIndex)1 ResourceRoot (org.jboss.as.server.deployment.module.ResourceRoot)1 WSEndpointHandlersMapping (org.jboss.as.webservices.injection.WSEndpointHandlersMapping)1 JBossWebservicesPropertyReplaceFactory (org.jboss.as.webservices.metadata.JBossWebservicesPropertyReplaceFactory)1 ASHelper.getJBossWebMetaData (org.jboss.as.webservices.util.ASHelper.getJBossWebMetaData)1 ClassInfo (org.jboss.jandex.ClassInfo)1