@NotBusiness
You use the @NotBusiness annotation
to filter out classes and members that you do not want to import.
Purpose
Filters out classes and members that you do not want to import in the BOM.
Syntax
@NotBusiness
Description
The classes and members with the @NotBusiness annotation are not imported in the BOM. For example, if you encounter problems when loading a class, you can filter out the member that uses this class by setting the @NotBusiness annotation to this member.
Example
In the XOM, the annotation can be used as follows:
public class Customer {
public Customer(String name) {...}
public String getName() {...}
@NotBusiness
public Object readResolve() throws ObjectStreamException {...}
}The result in the BOM is the following code:
class Customer {
Customer(string arg);
readonly string name;
}