Class CleanClientDiscoveryTraitTransformer

  • All Implemented Interfaces:
    ModelTransformerPlugin

    public final class CleanClientDiscoveryTraitTransformer
    extends java.lang.Object
    implements ModelTransformerPlugin
    Removes the endpoint discovery trait from a service if the referenced operation or error are removed.
    • Constructor Detail

      • CleanClientDiscoveryTraitTransformer

        public CleanClientDiscoveryTraitTransformer()
    • Method Detail

      • onRemove

        public Model onRemove​(ModelTransformer transformer,
                              java.util.Collection<Shape> shapes,
                              Model model)
        Description copied from interface: ModelTransformerPlugin
        The method that is invoked each time shapes are removed from a model.
        Specified by:
        onRemove in interface ModelTransformerPlugin
        Parameters:
        transformer - Transformer used to replace/remove shapes from the model.
        shapes - The of shapes that were removed from the model.
        model - Model that has been altered to remove removed.
        Returns:
        Returns a transformed version of the passed in model.