Author: asoldano
Date: 2014-10-16 11:21:10 -0400 (Thu, 16 Oct 2014)
New Revision: 18995
Modified:
container/jboss72/branches/jbossws-jboss720-4.3.x/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerChainAdd.java
Log:
[JBWS-3842] Fix regression
Modified:
container/jboss72/branches/jbossws-jboss720-4.3.x/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerChainAdd.java
===================================================================
---
container/jboss72/branches/jbossws-jboss720-4.3.x/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerChainAdd.java 2014-10-16
14:16:39 UTC (rev 18994)
+++
container/jboss72/branches/jbossws-jboss720-4.3.x/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerChainAdd.java 2014-10-16
15:21:10 UTC (rev 18995)
@@ -38,7 +38,6 @@
import org.jboss.as.controller.ServiceVerificationHandler;
import org.jboss.as.webservices.service.HandlerChainService;
import org.jboss.dmr.ModelNode;
-import org.jboss.msc.inject.Injector;
import org.jboss.msc.service.ServiceBuilder;
import org.jboss.msc.service.ServiceController;
import org.jboss.msc.service.ServiceName;
@@ -86,9 +85,8 @@
final HandlerChainService service = new HandlerChainService(handlerChainType,
handlerChainId, protocolBindings);
final ServiceTarget target = context.getServiceTarget();
final ServiceBuilder<?> handlerChainServiceBuilder =
target.addService(handlerChainServiceName, service);
- final Injector<UnifiedHandlerMetaData> injector =
service.getHandlersInjector();
for (ServiceName sn : PackageUtils.getServiceNameDependencies(context,
handlerChainServiceName, address, HANDLER)) {
- handlerChainServiceBuilder.addDependency(sn,
UnifiedHandlerMetaData.class, injector);
+ handlerChainServiceBuilder.addDependency(sn,
UnifiedHandlerMetaData.class, service.getHandlersInjector()); //get a new injector
instance each time
}
ServiceController<?> controller =
handlerChainServiceBuilder.setInitialMode(ServiceController.Mode.ACTIVE).install();
if (newControllers != null) {
Show replies by date