Class WhiteListConfigurationBuilder
- java.lang.Object
-
- org.infinispan.configuration.global.WhiteListConfigurationBuilder
-
- All Implemented Interfaces:
Builder<WhiteListConfiguration>
public class WhiteListConfigurationBuilder extends Object implements Builder<WhiteListConfiguration>
Configures theEmbeddedCacheManager
ClassWhiteList
.- Since:
- 10.0
- Author:
- Ryan Emerson
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> WhiteListConfigurationBuilder
addClass(String clazz)
Helper method that allows for registration of a class to theClassWhiteList
.<T> WhiteListConfigurationBuilder
addClasses(Class... classes)
Helper method that allows for registration of classes to theClassWhiteList
.<T> WhiteListConfigurationBuilder
addRegexp(String regex)
Helper method that allows for registration of a regexp to theClassWhiteList
.<T> WhiteListConfigurationBuilder
addRegexps(String... regexps)
Helper method that allows for registration of regexps to theClassWhiteList
.WhiteListConfiguration
create()
Create the configuration beanBuilder<?>
read(WhiteListConfiguration template)
Reads the configuration from an already created configuration bean into this builder.void
validate()
Validate the data in this builder before building the configuration bean
-
-
-
Method Detail
-
addClass
public <T> WhiteListConfigurationBuilder addClass(String clazz)
Helper method that allows for registration of a class to theClassWhiteList
.
-
addClasses
public <T> WhiteListConfigurationBuilder addClasses(Class... classes)
Helper method that allows for registration of classes to theClassWhiteList
.
-
addRegexp
public <T> WhiteListConfigurationBuilder addRegexp(String regex)
Helper method that allows for registration of a regexp to theClassWhiteList
.
-
addRegexps
public <T> WhiteListConfigurationBuilder addRegexps(String... regexps)
Helper method that allows for registration of regexps to theClassWhiteList
.
-
validate
public void validate()
Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<WhiteListConfiguration>
-
create
public WhiteListConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<WhiteListConfiguration>
- Returns:
-
read
public Builder<?> read(WhiteListConfiguration template)
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<WhiteListConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
-
-