Class WrapWithComponentListFinder

java.lang.Object
com.vaadin.copilot.WrapWithComponentListFinder

public class WrapWithComponentListFinder extends Object
Finds components in the project and relevant dependencies that can be listed as options in Wrap With function. It uses ClassGraph to traverse classes in the project.
  • Constructor Details

    • WrapWithComponentListFinder

      public WrapWithComponentListFinder(com.vaadin.flow.server.VaadinServletContext vaadinServletContext, com.vaadin.flow.server.VaadinSession vaadinSession)
      Parameters:
      vaadinServletContext - VaadinServletContext to access SpringBridge
      vaadinSession - VaadinSession to access server routes to exclude from the available list
  • Method Details

    • findAndGet

      Finds the available components that has HasComponents interface in Flow and in the project and returns the sorted list
      Returns:
      the sorted list