Refine search
@Override public void activate(ServiceActivatorContext serviceActivatorContext) throws ServiceRegistryException { serviceActivatorContext.getServiceTarget().addService(SERVICE_NAME, this) .addDependency(MBEAN_SERVER_SERVICE_NAME, PluggableMBeanServer.class, mbeanServerValue).install(); }
@Override public void activate(ServiceActivatorContext context) throws ServiceRegistryException { INSTANCE = context.getServiceRegistry(); } }
@Override public void activate(ServiceActivatorContext serviceActivatorContext) throws ServiceRegistryException { serviceActivatorContext.getServiceTarget().addService(SERVICE_NAME, this) .install(); }
@Override public void activate(final ServiceActivatorContext serviceActivatorContext) throws ServiceRegistryException { final ServiceTarget serviceTarget = serviceActivatorContext.getServiceTarget(); final ServiceName endpointName = managementSubsystemEndpoint ? RemotingServices.SUBSYSTEM_ENDPOINT : ManagementRemotingServices.MANAGEMENT_ENDPOINT; final EndpointService.EndpointType endpointType = managementSubsystemEndpoint ? EndpointService.EndpointType.SUBSYSTEM : EndpointService.EndpointType.MANAGEMENT; try { ManagementWorkerService.installService(serviceTarget); // TODO see if we can figure out a way to work in the vault resolver instead of having to use ExpressionResolver.SIMPLE @SuppressWarnings("deprecation") final OptionMap options = EndpointConfigFactory.create(ExpressionResolver.SIMPLE, endpointConfig, DEFAULTS); ManagementRemotingServices.installRemotingManagementEndpoint(serviceTarget, endpointName, WildFlySecurityManager.getPropertyPrivileged(ServerEnvironment.NODE_NAME, null), endpointType, options); // Install the communication services final ServiceBuilder<?> sb = serviceTarget.addService(HostControllerConnectionService.SERVICE_NAME); final Supplier<ExecutorService> esSupplier = Services.requireServerExecutor(sb); final Supplier<ScheduledExecutorService> sesSupplier = sb.requires(ServerService.JBOSS_SERVER_SCHEDULED_EXECUTOR); final Supplier<Endpoint> eSupplier = sb.requires(endpointName); final Supplier<ControlledProcessStateService> cpssSupplier = sb.requires(ControlledProcessStateService.SERVICE_NAME); sb.setInstance(new HostControllerConnectionService(managementURI, serverName, serverProcessName, authKey, initialOperationID, managementSubsystemEndpoint, sslContextSupplier, esSupplier, sesSupplier, eSupplier, cpssSupplier)); sb.install(); } catch (OperationFailedException e) { throw new ServiceRegistryException(e); } }
@Override public void activate(ServiceActivatorContext context) throws ServiceRegistryException { SwarmContentRepository.addService(context.getServiceTarget(), repository); } }
/** {@inheritDoc} */ public void activate(ServiceActivatorContext context) { context.getBatchBuilder().addService(NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(name), new NetworkInterfaceService(name, anyLocalV4, anyLocalV6, anyLocal, getInterfaceCriteria())); }
@Override public void activate(ServiceActivatorContext serviceActivatorContext) throws ServiceRegistryException { serviceActivatorContext.getServiceTarget().addService(serviceName, this).install(); }
@Override public void activate(ServiceActivatorContext context) throws ServiceRegistryException { ServiceTarget serviceTarget = context.getServiceTarget(); ArquillianService.addService(serviceTarget); } }
final BatchBuilder batchBuilder = context.getBatchBuilder();
@Override public void activate(ServiceActivatorContext context) throws ServiceRegistryException { Service<Void> service = new AbstractService<Void>() { }; context.getServiceTarget().addService(BASE.append(this.cacheName).append("activator"), service) .addDependency(BASE.append(this.cacheName)) .setInitialMode(ServiceController.Mode.ACTIVE) .install(); }
@Override public void activate(ServiceActivatorContext context) throws ServiceRegistryException { SwarmMessages.MESSAGES.argsInstalled(Arrays.asList(this.args)); context.getServiceTarget().addService(ServiceName.of("wildfly", "swarm", "main-args"), new ValueService<>(new ImmediateValue<>(this.args))) .install(); } }
@Override public void activate(ServiceActivatorContext context) throws ServiceRegistryException { ServiceTarget serviceTarget = context.getServiceTarget(); ArquillianService.addService(serviceTarget); } }
/** * Activate the services required for service deployments. * * @param context The service activator context */ public void activate(final ServiceActivatorContext context) { final BatchBuilder batchBuilder = context.getBatchBuilder(); batchBuilder.addServiceValueIfNotExist(DeploymentChainProviderService.SERVICE_NAME, new DeploymentChainProviderService()); final Value<DeploymentChain> deploymentChainValue = Values.immediateValue((DeploymentChain)new DeploymentChainImpl(JAR_DEPLOYMENT_CHAIN_SERVICE_NAME.toString())) ; final DeploymentChainService deploymentChainService = new DeploymentChainService(deploymentChainValue); batchBuilder.addService(JAR_DEPLOYMENT_CHAIN_SERVICE_NAME, deploymentChainService) .addDependency(DeploymentChainProviderService.SERVICE_NAME, DeploymentChainProvider.class, new DeploymentChainProviderInjector<DeploymentChain>(deploymentChainValue, new JarDeploymentChainSelector(), JAR_DEPLOYMENT_CHAIN_PRIORITY)); addDeploymentProcessor(batchBuilder, new ManifestAttachmentProcessor(), ManifestAttachmentProcessor.PRIORITY); addDeploymentProcessor(batchBuilder, new AnnotationIndexProcessor(), AnnotationIndexProcessor.PRIORITY); addDeploymentProcessor(batchBuilder, new ModuleDependencyProcessor(), ModuleDependencyProcessor.PRIORITY); addDeploymentProcessor(batchBuilder, new ModuleConfigProcessor(), ModuleConfigProcessor.PRIORITY); final InjectedValue<DeploymentModuleLoader> moduleLoaderInjector = new InjectedValue<DeploymentModuleLoader>(); addDeploymentProcessor(batchBuilder, new DeploymentModuleLoaderProcessor(moduleLoaderInjector), DeploymentModuleLoaderProcessor.PRIORITY) .addDependency(DeploymentModuleLoaderService.SERVICE_NAME, DeploymentModuleLoader.class, moduleLoaderInjector); addDeploymentProcessor(batchBuilder, new ModuleDeploymentProcessor(), ModuleDeploymentProcessor.PRIORITY); addDeploymentProcessor(batchBuilder, new ModuleContextProcessor(), ModuleContextProcessor.PRIORITY); addDeploymentProcessor(batchBuilder, new ServiceActivatorDependencyProcessor(), ServiceActivatorDependencyProcessor.PRIORITY); addDeploymentProcessor(batchBuilder, new ServiceActivatorProcessor(), ServiceActivatorProcessor.PRIORITY); }
@Override public void activate(ServiceActivatorContext context) throws ServiceRegistryException { ServiceTarget target = context.getServiceTarget(); ConsulTopologyConnector connector = new ConsulTopologyConnector(this.url); target.addService(TopologyConnector.SERVICE_NAME, connector) //.addDependency(ServiceName.parse("org.wildfly.network.socket-binding.http"), SocketBinding.class, connector.getSocketBindingInjector()) .addDependency(TopologyManager.SERVICE_NAME, TopologyManager.class, connector.getTopologyManagerInjector()) .install(); } }
@Override public void activate(ServiceActivatorContext context) throws ServiceRegistryException { SwarmMessages.MESSAGES.argsInstalled(Arrays.asList(this.args)); context.getServiceTarget().addService(ServiceName.of("wildfly", "swarm", "main-args"), new ValueService<>(new ImmediateValue<>(this.args))) .install(); } }
@Override public void activate(ServiceActivatorContext serviceActivatorContext) throws ServiceRegistryException { DaemonService.addService(serviceActivatorContext.getServiceTarget()); }
@Override public void activate(ServiceActivatorContext context) throws ServiceRegistryException { final GetModelControllerService service = new GetModelControllerService(); context.getServiceTarget() .addService(ServiceName.of("rhq", "server", "management", "client", "getter"), service) .addDependency(Services.JBOSS_SERVER_CONTROLLER, ModelController.class, service.modelControllerValue) .install(); }
@Override public void activate(ServiceActivatorContext context) throws ServiceRegistryException { SwarmMessages.MESSAGES.argsInstalled(Arrays.asList(this.args)); context.getServiceTarget().addService(ServiceName.of("wildfly", "swarm", "main-args"), new ValueService<>(new ImmediateValue<>(this.args))) .install(); } }
@Override public void activate(ServiceActivatorContext context) throws ServiceRegistryException { ServiceTarget serviceTarget = context.getServiceTarget(); ArquillianService.addService(serviceTarget); } }
@Override public void activate(ServiceActivatorContext serviceActivatorContext) throws ServiceRegistryException { final ServiceTarget target = serviceActivatorContext.getServiceTarget(); final ServiceBuilder sb = target.addService(ServiceName.JBOSS.append("server-boot-operations"), service); sb.requires(Services.JBOSS_AS); sb.addDependency(Services.JBOSS_SERVER_CONTROLLER, ModelController.class, service.getServerController()); sb.addDependency(HostControllerConnectionService.SERVICE_NAME, HostControllerClient.class, service.getClientInjector()); sb.addDependency(Services.JBOSS_SERVER_EXECUTOR, Executor.class, service.getExecutorInjector()); sb.install(); } };