Skip Headers

# Using Java

Previous

Next

To configure a descriptor with an interface alias using Java, create an amendment method (see "Configuring Amendment Methods") and use `InterfacePolicy` method `addParentInterface` as Example: Configuring an Interface Alias shows.

Configuring an Interface Alias

    public static void addToDescriptor(Descriptor descriptor) {
        descriptor.getInterfacePolicy().addParentInterface(MyInterface.class);
    }