@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { this.requirement = new ServiceSupplierDependency<>(this.requirementNameFactory.apply(support)); return this; }
@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { this.container = new ServiceSupplierDependency<>(InfinispanRequirement.CONTAINER.getServiceName(support, this.containerName)); return this; }
SharedStateCacheServiceConfigurator(PathAddress address, CacheMode mode) { super(address, mode); this.partitionHandling = new ServiceSupplierDependency<>(CacheComponent.PARTITION_HANDLING.getServiceName(address)); this.stateTransfer = new ServiceSupplierDependency<>(CacheComponent.STATE_TRANSFER.getServiceName(address)); this.backups = new ServiceSupplierDependency<>(CacheComponent.BACKUPS.getServiceName(address)); }
@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { this.factory = new ServiceSupplierDependency<>(ClusteringCacheRequirement.REGISTRY_FACTORY.getServiceName(support, this.containerName, this.cacheName)); this.entry = new ServiceSupplierDependency<>(ClusteringCacheRequirement.REGISTRY_ENTRY.getServiceName(support, this.containerName, this.cacheName)); return this; }
@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { this.group = new ServiceSupplierDependency<>(ClusteringRequirement.GROUP.getServiceName(support, this.groupName)); return this; }
@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { this.cache = new ServiceSupplierDependency<>(InfinispanCacheRequirement.CACHE.getServiceName(support, this.containerName, this.cacheName)); this.factory = new ServiceSupplierDependency<>(ClusteringRequirement.GROUP.getServiceName(support, this.containerName)); return this; }
RemoteCacheContainerConfigurationServiceConfigurator(PathAddress address) { super(RemoteCacheContainerResourceDefinition.Capability.CONFIGURATION, address); this.threadPools.put(ThreadPoolResourceDefinition.CLIENT, new ServiceSupplierDependency<>(ThreadPoolResourceDefinition.CLIENT.getServiceName(address))); this.module = new ServiceSupplierDependency<>(RemoteCacheContainerComponent.MODULE.getServiceName(address)); this.connectionPool = new ServiceSupplierDependency<>(RemoteCacheContainerComponent.CONNECTION_POOL.getServiceName(address)); this.nearCache = new ServiceSupplierDependency<>(RemoteCacheContainerComponent.NEAR_CACHE.getServiceName(address)); this.security = new ServiceSupplierDependency<>(RemoteCacheContainerComponent.SECURITY.getServiceName(address)); }
@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { this.factory = new ServiceSupplierDependency<>(ClusteringRequirement.COMMAND_DISPATCHER_FACTORY.getServiceName(support, this.group)); return this; }
@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { String containerName = this.configuration.getContainerName(); ServiceName deploymentUnitServiceName = this.context.getDeploymentUnitServiceName(); this.cache = new ServiceSupplierDependency<>(InfinispanCacheRequirement.CACHE.getServiceName(support, containerName, InfinispanBeanManagerFactoryServiceConfiguratorFactory.getCacheName(deploymentUnitServiceName, this.name))); this.affinityFactory = new ServiceSupplierDependency<>(InfinispanRequirement.KEY_AFFINITY_FACTORY.getServiceName(support, containerName)); this.dispatcherFactory = new ServiceSupplierDependency<>(ClusteringRequirement.COMMAND_DISPATCHER_FACTORY.getServiceName(support, containerName)); this.registry = new ServiceSupplierDependency<>(ClusteringCacheRequirement.REGISTRY.getServiceName(support, containerName, BeanManagerFactoryServiceConfiguratorConfiguration.CLIENT_MAPPINGS_CACHE_NAME)); this.group = new ServiceSupplierDependency<>(ClusteringCacheRequirement.GROUP.getServiceName(support, containerName, BeanManagerFactoryServiceConfiguratorConfiguration.CLIENT_MAPPINGS_CACHE_NAME)); return this; }
public MarshallingConfigurationRepositoryServiceConfigurator(DeploymentUnit unit) { super(unit.getServiceName().append("marshalling")); this.module = unit.getAttachment(Attachments.MODULE); this.deployment = new ServiceSupplierDependency<>(unit.getServiceName().append(ModuleDeployment.SERVICE_NAME)); }
protected StoreServiceConfigurator(PathAddress address, Class<B> builderClass) { super(PERSISTENCE, address); this.builderClass = builderClass; this.async = new ServiceSupplierDependency<>(CacheComponent.STORE_WRITE.getServiceName(address.getParent())); }
/** * Constructs a new {@link XAResourceRecovery} builder. */ public XAResourceRecoveryServiceConfigurator(PathAddress cacheAddress) { super(CACHE.getServiceName(cacheAddress).append("recovery")); this.cache = new ServiceSupplierDependency<>(this.getServiceName().getParent()); }
@Override public ServiceConfigurator configure(OperationContext context, ModelNode model) throws OperationFailedException { this.dataSource = new ServiceSupplierDependency<>(CommonUnaryRequirement.DATA_SOURCE.getServiceName(context, DATA_SOURCE.resolveModelAttribute(context, model).asString())); return super.configure(context, model); }
@Override public ServiceConfigurator configure(OperationContext context, ModelNode model) throws OperationFailedException { this.bindings.clear(); for (String binding : StringListAttributeDefinition.unwrapValue(context, OUTBOUND_SOCKET_BINDINGS.resolveModelAttribute(context, model))) { this.bindings.add(new ServiceSupplierDependency<>(CommonUnaryRequirement.OUTBOUND_SOCKET_BINDING.getServiceName(context, binding))); } return super.configure(context, model); }
@Override public ServiceConfigurator configure(OperationContext context, ModelNode model) throws OperationFailedException { String keyStore = KEY_STORE.resolveModelAttribute(context, model).asString(); this.keyStore = new ServiceSupplierDependency<>(CommonUnaryRequirement.KEY_STORE.getServiceName(context, keyStore)); this.keyAlias = KEY_ALIAS.resolveModelAttribute(context, model).asString(); this.keyCredentialSource = new CredentialSourceDependency(context, KEY_CREDENTIAL, model); this.transformation = ALGORITHM.resolveModelAttribute(context, model).asString(); return super.configure(context, model); }
public CacheContainerServiceConfigurator(PathAddress address) { super(CONTAINER, address); this.name = address.getLastElement().getValue(); this.configuration = new ServiceSupplierDependency<>(CacheContainerResourceDefinition.Capability.CONFIGURATION.getServiceName(address)); }
@Override public ServiceConfigurator configure(OperationContext context, ModelNode model) throws OperationFailedException { this.remoteCacheName = CACHE.resolveModelAttribute(context, model).asString(); this.socketTimeout = SOCKET_TIMEOUT.resolveModelAttribute(context, model).asLong(); this.tcpNoDelay = TCP_NO_DELAY.resolveModelAttribute(context, model).asBoolean(); List<String> bindings = StringListAttributeDefinition.unwrapValue(context, SOCKET_BINDINGS.resolveModelAttribute(context, model)); this.bindings = new ArrayList<>(bindings.size()); for (String binding : bindings) { this.bindings.add(new ServiceSupplierDependency<>(CommonUnaryRequirement.OUTBOUND_SOCKET_BINDING.getServiceName(context, binding))); } return super.configure(context, model); }
@Override public ServiceConfigurator configure(OperationContext context, ModelNode model) throws OperationFailedException { this.siteName = SITE.resolveModelAttribute(context, model).asString(); PathAddress address = context.getCurrentAddress(); Resource resource = context.readResource(PathAddress.EMPTY_ADDRESS); Set<Resource.ResourceEntry> entries = resource.getChildren(RemoteSiteResourceDefinition.WILDCARD_PATH.getKey()); this.sites = new ArrayList<>(entries.size()); for (Resource.ResourceEntry entry : entries) { this.sites.add(new ServiceSupplierDependency<>(new RemoteSiteServiceNameProvider(address, entry.getPathElement()))); } return super.configure(context, model); }
@Override public ServiceConfigurator configure(OperationContext context, ModelNode model) throws OperationFailedException { String containerName = CACHE_CONTAINER.resolveModelAttribute(context, model).asString(); String cacheName = CACHE.resolveModelAttribute(context, model).asStringOrNull(); this.factory = new ServiceSupplierDependency<>(ClusteringCacheRequirement.SINGLETON_SERVICE_BUILDER_FACTORY.getServiceName(context, containerName, cacheName)); this.quorum = QUORUM.resolveModelAttribute(context, model).asInt(); return this; }
@Override public ServiceConfigurator configure(OperationContext context, ModelNode model) throws OperationFailedException { this.server = context.hasOptionalCapability(CommonRequirement.MBEAN_SERVER.getName(), null, null) ? new ServiceSupplierDependency<>(CommonRequirement.MBEAN_SERVER.getServiceName(context)) : null; this.defaultCache = DEFAULT_CACHE.resolveModelAttribute(context, model).asStringOrNull(); this.statisticsEnabled = STATISTICS_ENABLED.resolveModelAttribute(context, model).asBoolean(); return this; }