/** * Creates an instance for the given qualified name. * <p> * The qualified name consists of two part that are separated by a 'at' ( * <code>@</code>) sign. The first part is the name of the property set, the * second part the name of the property. * </p> * {@example my-set@my.property.name} * <p> * The last 'at' sign is significant for the separation. That is, the property * set name may contain any number of 'at' signs. An 'at' sign at the end of * the qualified name is ignored. * </p> * * @param qualifiedName a name optionally prefixed with a property set name * separated by a 'at' (<code>@</code>) sign. * @return the created instance. */ public static PropertyKey create(final String qualifiedName) { return create(qualifiedName, '@'); }
/** * Reads the property key information from the method. * * @param method the method to read the property key. * @return the property key provided by this method. */ public PropertyKey readKey(final Method method) { final String set = readPropertySetName(method); final String name = readPropertyKeyName(method); return PropertyKey.create(set, name); }