Interface GuiProviderFactory

All Known Implementing Classes:
DefaultGuiProviderFactory

public interface GuiProviderFactory
A factory for GuiProviders.
Author:
harald
  • Method Details

    • getInstance

      static GuiProviderFactory getInstance()
      The singleton.
      Returns:
      the singleton
    • createGuiProvider

      <T extends PersistentDomainObject<T>> GuiProvider<T> createGuiProvider(T pdo)
      Creates a service object that provides methods related to the rdc gui.

      Throws a PdoRuntimeException if provider could not be created, or no GuiProviderService found at all.

      Type Parameters:
      T - the PDO type
      Parameters:
      pdo - the PDO
      Returns:
      the GUI provider, never null
    • isGuiProviderAvailable

      <T extends PersistentDomainObject<T>> boolean isGuiProviderAvailable(Class<T> pdoClass)
      Returns whether a GuiProviderService is present for the given PDO class.

      Throws a PdoRuntimeException if provider could not be created.

      Type Parameters:
      T - the PDO type
      Parameters:
      pdoClass - the PDO class
      Returns:
      true if provider exists, false if no GuiProviderService found