Class SimpleEngineLocator<G>

java.lang.Object
net.n2oapp.engine.factory.locator.SimpleEngineLocator<G>
All Implemented Interfaces:
EngineLocator<G>

public class SimpleEngineLocator<G> extends Object implements EngineLocator<G>
  • Constructor Details

    • SimpleEngineLocator

      public SimpleEngineLocator(Map<String,G> beans)
  • Method Details

    • locate

      public <T> MultiEngineFactory<T,G> locate(BiPredicate<G,T> predicate)
      Description copied from interface: EngineLocator
      Отобрать список движков по условию
      Specified by:
      locate in interface EngineLocator<G>
      Parameters:
      predicate - Условие
      Returns:
      Список движков, удовлетворяющих условию
    • add

      public void add(G engine)