Class TemplateConfigurationServiceInstallerFactory
java.lang.Object
org.wildfly.clustering.infinispan.service.TemplateConfigurationServiceInstallerFactory
- All Implemented Interfaces:
BiFunction<BinaryServiceConfiguration,BinaryServiceConfiguration, org.wildfly.subsystem.service.ServiceInstaller>
public class TemplateConfigurationServiceInstallerFactory
extends Object
implements BiFunction<BinaryServiceConfiguration,BinaryServiceConfiguration,org.wildfly.subsystem.service.ServiceInstaller>
Configures a
Service providing a cache configuration based on a configuration template.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new cache configuration builder.TemplateConfigurationServiceInstallerFactory(Consumer<org.infinispan.configuration.cache.ConfigurationBuilder> configurator) Constructs a new cache configuration builder. -
Method Summary
Modifier and TypeMethodDescriptionorg.wildfly.subsystem.service.ServiceInstallerapply(BinaryServiceConfiguration templateConfiguration, BinaryServiceConfiguration configuration) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
TemplateConfigurationServiceInstallerFactory
public TemplateConfigurationServiceInstallerFactory()Constructs a new cache configuration builder.- Parameters:
containerName- the name of the cache containertemplateName- the name of the template cache
-
TemplateConfigurationServiceInstallerFactory
public TemplateConfigurationServiceInstallerFactory(Consumer<org.infinispan.configuration.cache.ConfigurationBuilder> configurator) Constructs a new cache configuration builder.- Parameters:
containerName- the name of the cache containertemplateName- the name of the template cacheconfigurator- provides additional configuration of the target cache
-
-
Method Details
-
apply
public org.wildfly.subsystem.service.ServiceInstaller apply(BinaryServiceConfiguration templateConfiguration, BinaryServiceConfiguration configuration) - Specified by:
applyin interfaceBiFunction<BinaryServiceConfiguration,BinaryServiceConfiguration, org.wildfly.subsystem.service.ServiceInstaller>
-