@java.beans.ConstructorProperties
You can use the @java.beans.ConstructorProperties annotation
to provide a name for a constructor.
Purpose
Provides a name for a constructor.
Syntax
@java.beans.ConstructorProperties({<strings>})
Description
You can use the @java.beans.ConstructorProperties annotation to provide a name for a constructor. You can also use the @BusinessName on the parameters to give a name to each argument in the BOM.
For
more information about the @java.beans.ConstructorProperties annotation,
see ConstructorProperties.
![]()
Example
In the XOM, the annotation can be used as follows:
public class Customer {
@ConstructorProperties("name", "age")
public Customer(String name, int age);
}The result in the BOM is the following code:
class Customer {
Customer(string name, int age);
}