Class BowlManagerFactoryRegistry

java.lang.Object
org.pentaho.di.core.bowl.BowlManagerFactoryRegistry

public class BowlManagerFactoryRegistry extends Object
A Registry that holds Factories that generate Manager classes from a Bowl.

Used by BaseBowl to create single-instance-per-bowl manager instances from the factory method here.

  • Method Details

    • getInstance

      public static BowlManagerFactoryRegistry getInstance()
    • registerManagerFactory

      public <T> void registerManagerFactory(Class<T> managerClass, ManagerFactory<T> factoryMethod)
      Register a ManagerFactory for the given manager class.

      Any manager that caches objects should implement CachingManager so that cached objects can be cleared when refreshing the UI. See BaseBowl.clearManagers() and CachingManager.notifyChanged().
      Type Parameters:
      T - the type of object being managed
      Parameters:
      managerClass - the interface class of the manager
      factoryMethod - a method to create a new manager instance from a Bowl
    • getManagerFactory

      public <T> ManagerFactory<T> getManagerFactory(Class<T> managerClass)