BiFunction<Class<?>, String, MessageMonitor<Message<?>>> build(Configuration configuration) { assertNotBuilt(); built = true; return (type, name) -> { MessageMonitorFactory factory = getFactoryForType(forNameFactories.get(name), type); if (factory == null) { factory = getFactoryForType(forTypeFactories, type); } if (factory == null) { factory = defaultFactory; } return factory.create(configuration, type, name); }; }
BiFunction<Class<?>, String, MessageMonitor<Message<?>>> build(Configuration configuration) { assertNotBuilt(); built = true; return (type, name) -> { MessageMonitorFactory factory = getFactoryForType(forNameFactories.get(name), type); if (factory == null) { factory = getFactoryForType(forTypeFactories, type); } if (factory == null) { factory = defaultFactory; } return factory.create(configuration, type, name); }; }
BiFunction<Class<?>, String, MessageMonitor<Message<?>>> build(Configuration configuration) { assertNotBuilt(); built = true; return (type, name) -> { MessageMonitorFactory factory = getFactoryForType(forNameFactories.get(name), type); if (factory == null) { factory = getFactoryForType(forTypeFactories, type); } if (factory == null) { factory = defaultFactory; } return factory.create(configuration, type, name); }; }