Annotation that can be used on method parameters to identify their name.
Can be used in the following locations:
- In place of
@BeanProperty(name="foo")
when just the name is specified.
- On constructor and method arguments when the parameter names are not in the compiled bytecode.
// Identifying bean property names.
// The field name can be anything.
public class MyBean {
// Same as @BeanProperty(properties="bar")
public MyBean(@Name("bar") int foo) {}
@Name("bar") // Same as @BeanProperty(name="bar")
public int foo;
@Name("*") // Same as @BeanProperty(name="*")
public Map<String,Object> extraStuff = new LinkedHashMap<String,Object>();
}