@Test public void shouldSupports() { Assertions.assertThat(connectionFactoryCreator.supports(ConnectionFactory.class)).isTrue(); Assertions.assertThat(connectionFactoryCreator.supports(ActiveMQConnectionFactory.class)).isTrue(); Assertions.assertThat(connectionFactoryCreator.supports(String.class)).isFalse(); }
@Override public boolean supports(Class<?> type) { return ConnectionFactory.class.isAssignableFrom(type); }
DefaultConnectionFactoryCreator implements ConnectionFactoryCreator { @Override public boolean supports(Class<?> type) { return ConnectionFactory.class.isAssignableFrom(type); } }
DefaultConnectionFactoryCreator implements ConnectionFactoryCreator { @Override public boolean supports(Class<?> type) { return ConnectionFactory.class.isAssignableFrom(type); }  }
DefaultConnectionFactoryCreator implements ConnectionFactoryCreator { @Override public boolean supports(Class<?> type) { return ConnectionFactory.class.isAssignableFrom(type); }  @Override ConnectionFactory create(Map<String, String> properties); @Override boolean supports(Class<?> type); }
DefaultConnectionFactoryCreator implements ConnectionFactoryCreator { @Override public boolean supports(Class<?> type) { return ConnectionFactory.class.isAssignableFrom(type); }  @Override ConnectionFactory create(Map<String, String> properties); @Override boolean supports(Class<?> type);  }