public class ConfiguredDbConfigResolver extends AbstractDbConfigResolver
DbConfig
delegating to the DbConfigResolver
corresponding to the configured config.PROPERTY_NAME
Constructor and Description |
---|
ConfiguredDbConfigResolver(DbConfigResolver dbConfigResolver) |
Modifier and Type | Method and Description |
---|---|
DbConfig |
resolve(MuleEvent muleEvent)
Resolves which database configuration to use for a given event
|
protected DbConfig |
resolveDefaultConfig() |
getMetaData, getMetaDataKeys, test
getAnnotation, getAnnotations, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotation, getAnnotations, setAnnotations
public ConfiguredDbConfigResolver(DbConfigResolver dbConfigResolver)
public DbConfig resolve(MuleEvent muleEvent) throws UnresolvableDbConfigException
DbConfigResolver
muleEvent
- event used to resolve the configuration. Not null.UnresolvableDbConfigException
- when is not possible to resolve a database configurationprotected DbConfig resolveDefaultConfig()
resolveDefaultConfig
in class AbstractDbConfigResolver
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.