Author: asoldano
Date: 2014-10-16 10:14:50 -0400 (Thu, 16 Oct 2014)
New Revision: 18993
Modified:
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerChainAdd.java
Log:
[JBWS-3842] Fix regression
Modified:
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerChainAdd.java
===================================================================
---
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerChainAdd.java 2014-10-16
13:25:22 UTC (rev 18992)
+++
container/wildfly81/branches/jbossws-wildfly810/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerChainAdd.java 2014-10-16
14:14:50 UTC (rev 18993)
@@ -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