public interface ConfigurationNameMapper
Modifier and Type | Method and Description |
---|---|
String |
configurationLocation(Class<? extends ConfigurationNode> type,
String nodeName)
Returns the name of a configuration resource based on a naming convention
for a given node type.
|
String |
configurationLocation(ConfigurationNode node)
Returns the name of a configuration resource based on a naming convention
for a given node type.
|
String |
configurationNodeName(Class<? extends ConfigurationNode> type,
Resource resource)
Returns a node name for a given configuration type and a configuration
resource.
|
String configurationLocation(ConfigurationNode node)
String configurationLocation(Class<? extends ConfigurationNode> type, String nodeName)
String configurationNodeName(Class<? extends ConfigurationNode> type, Resource resource)
configurationLocation(Class, String)
. May return null if the
resource name is not following the expected naming format.Copyright © 2001–2019 Apache Cayenne. All rights reserved.