use of org.jboss.as.webservices.deployers.WSEndpointConfigMapping in project wildfly by wildfly.
the class DeploymentModelBuilderJAXWS_POJO method build.
@Override
protected void build(final Deployment dep, final DeploymentUnit unit) {
WSLogger.ROOT_LOGGER.trace("Creating JAXWS POJO endpoints meta data model");
WSEndpointConfigMapping ecm = unit.getAttachment(WSAttachmentKeys.WS_ENDPOINT_CONFIG_MAPPING_KEY);
for (final POJOEndpoint pojoEndpoint : getJaxwsPojos(unit)) {
final String pojoEndpointName = pojoEndpoint.getName();
WSLogger.ROOT_LOGGER.tracef("POJO name: %s", pojoEndpointName);
final String pojoEndpointClassName = pojoEndpoint.getClassName();
WSLogger.ROOT_LOGGER.tracef("POJO class: %s", pojoEndpointClassName);
final Endpoint ep = newHttpEndpoint(pojoEndpointClassName, pojoEndpointName, dep);
final ServiceName componentViewName = pojoEndpoint.getComponentViewName();
if (componentViewName != null) {
ep.setProperty(COMPONENT_VIEW_NAME, componentViewName);
}
if (ecm != null) {
ep.setEndpointConfig(ecm.getConfig(pojoEndpointClassName));
}
}
}
use of org.jboss.as.webservices.deployers.WSEndpointConfigMapping in project wildfly by wildfly.
the class DeploymentModelBuilderJAXWS_EJB method build.
@Override
protected void build(final Deployment dep, final DeploymentUnit unit) {
WSLogger.ROOT_LOGGER.trace("Creating JAXWS EJB endpoints meta data model");
WSEndpointConfigMapping ecm = unit.getAttachment(WSAttachmentKeys.WS_ENDPOINT_CONFIG_MAPPING_KEY);
for (final EJBEndpoint ejbEndpoint : getJaxwsEjbs(unit)) {
final String ejbEndpointName = ejbEndpoint.getName();
WSLogger.ROOT_LOGGER.tracef("EJB name: %s", ejbEndpointName);
final String ejbEndpointClassName = ejbEndpoint.getClassName();
WSLogger.ROOT_LOGGER.tracef("EJB class: %s", ejbEndpointClassName);
final Endpoint ep = newHttpEndpoint(ejbEndpointClassName, ejbEndpointName, dep);
final ServiceName componentViewName = ejbEndpoint.getComponentViewName();
if (componentViewName != null) {
ep.setProperty(COMPONENT_VIEW_NAME, componentViewName);
}
ep.setEndpointConfig(ecm.getConfig(ejbEndpointClassName));
}
}
Aggregations