public static void install(final ServiceTarget serviceTarget, final ServiceName serverInventoryName, ExecutorService executorService, ServerToHostProtocolHandler.OperationExecutor operationExecutor, DomainController domainController, ExpressionResolver expressionResolver, File tempDir) { final ServerToHostOperationHandlerFactoryService serverToHost = new ServerToHostOperationHandlerFactoryService(executorService, operationExecutor, domainController, expressionResolver, tempDir); serviceTarget.addService(ServerToHostOperationHandlerFactoryService.SERVICE_NAME, serverToHost) .addDependency(serverInventoryName, ServerInventory.class, serverToHost.serverInventory) .install(); }
public static void install(final ServiceTarget serviceTarget, final ServiceName serverInventoryName, ExecutorService executorService, ServerToHostProtocolHandler.OperationExecutor operationExecutor, DomainController domainController, ExpressionResolver expressionResolver) { final ServerToHostOperationHandlerFactoryService serverToHost = new ServerToHostOperationHandlerFactoryService(executorService, operationExecutor, domainController, expressionResolver); serviceTarget.addService(ServerToHostOperationHandlerFactoryService.SERVICE_NAME, serverToHost) .addDependency(serverInventoryName, ServerInventory.class, serverToHost.serverInventory) .install(); }
public static void install(final ServiceTarget serviceTarget, final ServiceName serverInventoryName, ExecutorService executorService, ServerToHostProtocolHandler.OperationExecutor operationExecutor, DomainController domainController, ExpressionResolver expressionResolver, File tempDir) { final ServerToHostOperationHandlerFactoryService serverToHost = new ServerToHostOperationHandlerFactoryService(executorService, operationExecutor, domainController, expressionResolver, tempDir); serviceTarget.addService(ServerToHostOperationHandlerFactoryService.SERVICE_NAME, serverToHost) .addDependency(serverInventoryName, ServerInventory.class, serverToHost.serverInventory) .install(); }