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