public interface NamingStrategy
| Modifier and Type | Method and Description |
|---|---|
PropertyNaming |
buildNames(Property prop,
GroupProxy containingGroup)
Build a list of names for the Property
|
String |
getNameMatchingDescription()
Returns a description of how names are matched for use in samples and documentation.
|
default String |
getUriName(String classpathName)
Converts a standard classpath style property name to a URI based one.
|
default boolean |
isUriNameDistict(String classpathName)
Returns true if the Uri version of the passed name would be a disctict name
from the passed name.
|
String |
toEffectiveName(String name)
Transforms a property name found in a property source (like a properties file,
cmd line argument, env variable, etc.) into the form needed to match the
expected property names.
|
PropertyNaming buildNames(Property prop, GroupProxy containingGroup) throws Exception
prop - The Property to be namedcontainingGroup - Properties are contained in GroupException - A security exception trying to read fields of a Group via reflection.String toEffectiveName(String name)
name - String getNameMatchingDescription()
default String getUriName(String classpathName)
com.acme.bigapp.PROPERTY_NAME.
A URI version of that would be this: com/acme/bigapp/PROPERTY_NAME.
No trimming or cleanup is done of the passed classpathNames - they are
assumed to be in final form.
Empty and null classpathNames shouldn't happen, but they just return
themselves, respectively.classpathName - default boolean isUriNameDistict(String classpathName)
classpathName - Copyright © 2017. All rights reserved.