Interface LoaderConfig

All Known Implementing Classes:
CustomComponentsLoaderConfig, LayoutLoaderConfig

public interface LoaderConfig
Marker interface for component loaders.
  • Method Summary

    Modifier and Type
    Method
    Description
    getLoader(org.dom4j.Element element)
     
    getScreenLoader(org.dom4j.Element root)
     
    boolean
    supports(org.dom4j.Element element)
    Checks whether the config contains a loader that supports the given element.
  • Method Details

    • supports

      boolean supports(org.dom4j.Element element)
      Checks whether the config contains a loader that supports the given element.
      Parameters:
      element - element
      Returns:
      true if the config contains suitable loader, of false otherwise
    • getLoader

      Class<? extends ComponentLoader> getLoader(org.dom4j.Element element)
      Parameters:
      element - element to load
      Returns:
      ComponentLoader instance
    • getScreenLoader

      @Nullable Class<? extends ComponentLoader> getScreenLoader(org.dom4j.Element root)
      Parameters:
      root - window's root element
      Returns:
      loader class for window or null if config does not support given root