Package org.apache.camel.impl.engine
Class DefaultValidatorRegistry
java.lang.Object
java.util.AbstractMap<ValidatorKey,org.apache.camel.spi.Validator>
org.apache.camel.impl.engine.AbstractDynamicRegistry<ValidatorKey,org.apache.camel.spi.Validator>
org.apache.camel.impl.engine.DefaultValidatorRegistry
- All Implemented Interfaces:
AutoCloseable
,Map<ValidatorKey,
,org.apache.camel.spi.Validator> org.apache.camel.Service
,org.apache.camel.spi.ValidatorRegistry<ValidatorKey>
,org.apache.camel.StaticService
public class DefaultValidatorRegistry
extends AbstractDynamicRegistry<ValidatorKey,org.apache.camel.spi.Validator>
implements org.apache.camel.spi.ValidatorRegistry<ValidatorKey>
Default implementation of
ValidatorRegistry
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields inherited from class org.apache.camel.impl.engine.AbstractDynamicRegistry
context, dynamicMap, maxCacheSize, routeController, staticMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isDynamic
(org.apache.camel.spi.DataType type) boolean
isStatic
(org.apache.camel.spi.DataType type) org.apache.camel.spi.Validator
put
(ValidatorKey key, org.apache.camel.spi.Validator obj) org.apache.camel.spi.Validator
toString()
Methods inherited from class org.apache.camel.impl.engine.AbstractDynamicRegistry
cleanUp, clear, containsKey, containsValue, dynamicSize, entrySet, get, getMaximumCacheSize, getReadOnlyMap, getReadOnlyValues, isDynamic, isEmpty, isStatic, purge, remove, size, start, staticSize, stop
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.spi.ValidatorRegistry
cleanUp, dynamicSize, getMaximumCacheSize, purge, staticSize
-
Constructor Details
-
DefaultValidatorRegistry
public DefaultValidatorRegistry(org.apache.camel.CamelContext context)
-
-
Method Details
-
resolveValidator
- Specified by:
resolveValidator
in interfaceorg.apache.camel.spi.ValidatorRegistry<ValidatorKey>
-
isStatic
public boolean isStatic(org.apache.camel.spi.DataType type) - Specified by:
isStatic
in interfaceorg.apache.camel.spi.ValidatorRegistry<ValidatorKey>
-
isDynamic
public boolean isDynamic(org.apache.camel.spi.DataType type) - Specified by:
isDynamic
in interfaceorg.apache.camel.spi.ValidatorRegistry<ValidatorKey>
-
toString
- Overrides:
toString
in classAbstractDynamicRegistry<ValidatorKey,
org.apache.camel.spi.Validator>
-
put
- Specified by:
put
in interfaceMap<ValidatorKey,
org.apache.camel.spi.Validator> - Overrides:
put
in classAbstractDynamicRegistry<ValidatorKey,
org.apache.camel.spi.Validator>
-