@Test public void shouldAcceptServiceCatalogConfig() { ComponentHandler generator = new ComponentHandler(); assertTrue(generator.canHandle(ComponentConfig.class)); }
@Override public boolean canHandle(Class<? extends Configuration> type) { return type.equals(ComponentConfig.class) || type.equals(EditableComponentConfig.class); }
ComponentHandler implements HandlerFactory, Handler<ComponentConfig>, WithProject { @Override public boolean canHandle(Class<? extends Configuration> type) { return type.equals(ComponentConfig.class) || type.equals(EditableComponentConfig.class); } }
ComponentHandler implements HandlerFactory, Handler<ComponentConfig>, WithProject { @Override public boolean canHandle(Class<? extends Configuration> type) { return type.equals(ComponentConfig.class) || type.equals(EditableComponentConfig.class); } ComponentHandler();  ComponentHandler(Resources resources, Configurators configurators); }
ComponentHandler implements HandlerFactory, Handler<ComponentConfig>, WithProject { @Override public boolean canHandle(Class<? extends Configuration> type) { return type.equals(ComponentConfig.class) || type.equals(EditableComponentConfig.class); } ComponentHandler();  ComponentHandler(Resources resources, Configurators configurators); Handler create(Resources resources, Configurators configurators); @Override int order(); @Override String getKey(); @Override void handle(ComponentConfig config); @Override boolean canHandle(Class<? extends Configuration> type); @Override ConfigurationSupplier<ComponentConfig> getFallbackConfig(); }
ComponentHandler implements HandlerFactory, Handler<ComponentConfig>, WithProject { @Override public boolean canHandle(Class<? extends Configuration> type) { return type.equals(ComponentConfig.class) || type.equals(EditableComponentConfig.class); } ComponentHandler();  ComponentHandler(Resources resources, Configurators configurators); Handler create(Resources resources, Configurators configurators); @Override int order(); @Override String getKey(); @Override void handle(ComponentConfig config); @Override boolean canHandle(Class<? extends Configuration> type); @Override ConfigurationSupplier<ComponentConfig> getFallbackConfig(); static final ConfigKey<String> RUNTIME_TYPE; static final ConfigKey<String> RUNTIME_VERSION; }