use of org.jboss.as.webservices.injection.WSComponentDescription in project wildfly by wildfly.
the class AbstractIntegrationProcessorJAXWS method createComponentDescription.
static ComponentDescription createComponentDescription(final DeploymentUnit unit, final String componentName, final String componentClassName, final String dependsOnEndpointClassName) {
final EEModuleDescription moduleDescription = getRequiredAttachment(unit, EE_MODULE_DESCRIPTION);
// JBoss WEB processors may install fake components for WS endpoints - removing them forcibly
moduleDescription.removeComponent(componentName, componentClassName);
// register WS component
ComponentDescription componentDescription = new WSComponentDescription(componentName, componentClassName, moduleDescription, unit.getServiceName());
moduleDescription.addComponent(componentDescription);
// register WS dependency
final ServiceName endpointServiceName = EndpointService.getServiceName(unit, dependsOnEndpointClassName);
componentDescription.addDependency(endpointServiceName, ServiceBuilder.DependencyType.REQUIRED);
return componentDescription;
}
use of org.jboss.as.webservices.injection.WSComponentDescription in project wildfly by wildfly.
the class XTSInterceptorDeploymentProcessor method deploy.
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit unit = phaseContext.getDeploymentUnit();
final EEModuleDescription moduleDescription = unit.getAttachment(Attachments.EE_MODULE_DESCRIPTION);
for (ComponentDescription component : moduleDescription.getComponentDescriptions()) {
if (component instanceof SessionBeanComponentDescription) {
registerSessionBeanInterceptors((SessionBeanComponentDescription) component);
}
if (component instanceof WSComponentDescription) {
registerWSPOJOInterceptors((WSComponentDescription) component);
}
}
}
Aggregations