@Test public void testMyfaces() { ServletContainerInitializerRegistrationBean<MyFacesContainerInitializer> bean = new ServletContainerInitializerRegistrationBean<>(MyFacesContainerInitializer.class); Set<Class<?>> classes = bean.getClasses(getClass().getClassLoader()); assertThat(classes).isNotEmpty(); assertThat(classes).contains(UIViewAction.class, MessageRenderer.class, InputNumberRenderer.class); }
protected Set<Class<?>> getClasses(ClassLoader classLoader) { return findPreparedScanResult(classLoader).orElseGet(this::performClasspathScan); }
ServletContainerInitializerRegistrationBean implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> { protected Set<Class<?>> getClasses(ClassLoader classLoader) { return findPreparedScanResult(classLoader).orElseGet(this::performClasspathScan); } }
ServletContainerInitializerRegistrationBean implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> { protected Set<Class<?>> getClasses(ClassLoader classLoader) { return findPreparedScanResult(classLoader).orElseGet(this::performClasspathScan); }  }
ServletContainerInitializerRegistrationBean implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> { protected Set<Class<?>> getClasses(ClassLoader classLoader) { return findPreparedScanResult(classLoader).orElseGet(this::performClasspathScan); }  @Override void customize(ConfigurableServletWebServerFactory factory); }
ServletContainerInitializerRegistrationBean implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> { protected Set<Class<?>> getClasses(ClassLoader classLoader) { return findPreparedScanResult(classLoader).orElseGet(this::performClasspathScan); }  @Override void customize(ConfigurableServletWebServerFactory factory);  }