T
- wrapped provider's definition typepublic class MapBasedDefinitionProviderWrapper<T> extends DefinitionProviderWrapperWithProxyFallback<T>
definition provider wrapper
which constructs a new version of a provided bean from a Map
. Resulting bean, however,
falls back to the wrapped provider's bean for un-resolved properties.DefinitionProviderWrapperWithProxyFallback.DirectDelegator, DefinitionProviderWrapperWithProxyFallback.FallbackInterceptor, DefinitionProviderWrapperWithProxyFallback.WithDelegate<T>, DefinitionProviderWrapperWithProxyFallback.WithFallback<T>
DefinitionProvider.Problem
DELEGATE_FIELD_NAME, FALLBACK_FIELD_NAME
Constructor and Description |
---|
MapBasedDefinitionProviderWrapper(DefinitionProvider<T> definitionProvider,
Map2BeanTransformer map2BeanTransformer,
Map<String,Object> mapRepresentation) |
Modifier and Type | Method and Description |
---|---|
protected T |
doGet() |
List<String> |
getErrorMessages() |
DefinitionRawView |
getRaw()
Returns a
DefinitionRawView representation the underlying bean; it might be
invalid, partially resolved and/or disabled. |
boolean |
isValid() |
get
getDelegate
getDecorators, getLastModified, getMetadata, getProblems
public MapBasedDefinitionProviderWrapper(DefinitionProvider<T> definitionProvider, Map2BeanTransformer map2BeanTransformer, Map<String,Object> mapRepresentation)
protected T doGet()
doGet
in class DefinitionProviderWrapperWithProxyFallback<T>
public DefinitionRawView getRaw()
DefinitionProvider
DefinitionRawView
representation the underlying bean; it might be
invalid, partially resolved and/or disabled.getRaw
in interface DefinitionProvider<T>
getRaw
in class AbstractDefinitionProviderWrapper<T>
public boolean isValid()
isValid
in interface DefinitionProvider<T>
isValid
in class AbstractDefinitionProviderWrapper<T>
public List<String> getErrorMessages()
getErrorMessages
in interface DefinitionProvider<T>
getErrorMessages
in class AbstractDefinitionProviderWrapper<T>
Copyright © 2003–2021 Magnolia International Ltd.. All rights reserved.