public DistributableCacheFactoryServiceConfigurator(ServiceName name, CapabilityServiceConfigurator configurator) { super(name); this.configurator = configurator; this.factory = new ServiceSupplierDependency<>(configurator); }
@Override public <T> ServiceBuilder<T> register(ServiceBuilder<T> builder) { this.supplier = builder.requires(this.getServiceName()); return builder; } }
public EJBRemotingConnectorClientMappingsEntryProviderService(String clientMappingsClusterName, ServiceName remotingConnectorInfoServiceName) { this.clientMappingsClusterName = clientMappingsClusterName; this.remotingConnectorInfo = new ServiceSupplierDependency<>(remotingConnectorInfoServiceName); }
@Override public <T> ServiceBuilder<T> register(ServiceBuilder<T> builder) { this.supplier = builder.requires(this.getServiceName()); return builder; } }
@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { this.requirement = new ServiceSupplierDependency<>(this.requirementNameFactory.apply(support)); return this; }
@Override public <V> Supplier<V> requires(ServiceName name) { SupplierDependency<V> dependency = new ServiceSupplierDependency<>(name); this.dependencies.add(dependency); return dependency; } }
@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(OperationContext context, ModelNode model) throws OperationFailedException { this.configuration = new ServiceSupplierDependency<>(InfinispanRequirement.REMOTE_CONTAINER_CONFIGURATION.getServiceName(context, this.name)); return this; }
@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) { this.cache = new ServiceSupplierDependency<>(InfinispanCacheRequirement.CACHE.getServiceName(support, this.containerName, this.cacheName)); this.dispatcherFactory = new ServiceSupplierDependency<>(ClusteringRequirement.COMMAND_DISPATCHER_FACTORY.getServiceName(support, this.containerName)); this.group = new ServiceSupplierDependency<>(ClusteringCacheRequirement.GROUP.getServiceName(support, this.containerName, this.cacheName)); return this; }
@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { this.group = new ServiceSupplierDependency<>(ClusteringCacheRequirement.GROUP.getServiceName(support, this.containerName, this.cacheName)); return this; }
@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { this.channel = new ServiceSupplierDependency<>(JGroupsRequirement.CHANNEL.getServiceName(support, this.group)); this.channelFactory = new ServiceSupplierDependency<>(JGroupsRequirement.CHANNEL_SOURCE.getServiceName(support, this.group)); this.module = new ServiceSupplierDependency<>(JGroupsRequirement.CHANNEL_MODULE.getServiceName(support, this.group)); return this; }
@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { this.server = new ServiceSupplierDependency<>(support.getCapabilityServiceName(Capabilities.CAPABILITY_SERVER, this.serverName)); return this; }
@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { this.cache = new ServiceSupplierDependency<>(InfinispanCacheRequirement.CACHE.getServiceName(support, this.containerName, this.cacheName)); this.group = new ServiceSupplierDependency<>(ClusteringCacheRequirement.GROUP.getServiceName(support, this.containerName, this.cacheName)); return this; }
@Override public ServiceConfigurator configure(CapabilityServiceSupport support) { this.factory = new ServiceSupplierDependency<>(ClusteringCacheRequirement.GROUP.getServiceName(support, this.containerName, this.serverName)); this.registry = new ServiceSupplierDependency<>(ClusteringCacheRequirement.REGISTRY.getServiceName(support, this.containerName, this.serverName)); this.cache = new ServiceSupplierDependency<>(InfinispanCacheRequirement.CACHE.getServiceName(support, this.containerName, this.deploymentName)); return this; }