Skip Headers

# Using Java

Previous

Next

Use the `ClassDescriptor` method `setWrapperPolicy` to set the appropriate instance of `WrapperPolicy`.

Example: Configuring a BMP Wrapper Policy shows how to amend a BMP descriptor with the required BMP information.

Configuring a BMP Wrapper Policy

    public static void addToDescriptor(ClassDescriptor descriptor) {
        BMPWrapperPolicy policy = new BMPWrapperPolicy(
            "employee",
            EmployeeHome.class,
            EmployeePK.class,
            Employee.class,
            new Hashtable());
        descriptor.setWrapperPolicy(policy);