@Test public void testWithNoConverterForMapKey() { assertHecateException("Invalid facet \"map\"; no converter registered for key type \"java.io.Serializable\".", () -> getBindingFactory().createPojoBinding(NoConverterMapKey.class)); }
@Override @SuppressWarnings("unchecked") public synchronized <P> PojoBinding<P> createPojoBinding(Class<P> pojoType) { DefaultPojoBinding<P> binding = (DefaultPojoBinding<P>) bindingMap.get(pojoType); if (binding == null) { binding = new DefaultPojoBinding<>(pojoType); bindingMap.put(pojoType, binding); List<Facet> keyFacets = injectFacetBindings(binding, pojoType); injectKeyBinding(binding, pojoType, keyFacets); } return binding; }
DefaultPojoBindingFactory implements PojoBindingFactory { @Override @SuppressWarnings("unchecked") public synchronized <P> PojoBinding<P> createPojoBinding(Class<P> pojoType) { DefaultPojoBinding<P> binding = (DefaultPojoBinding<P>) bindingMap.get(pojoType); if (binding == null) { binding = new DefaultPojoBinding<>(pojoType); bindingMap.put(pojoType, binding); List<Facet> keyFacets = injectFacetBindings(binding, pojoType); injectKeyBinding(binding, pojoType, keyFacets); } return binding; } }
DefaultPojoBindingFactory implements PojoBindingFactory { @Override @SuppressWarnings("unchecked") public synchronized <P> PojoBinding<P> createPojoBinding(Class<P> pojoType) { DefaultPojoBinding<P> binding = (DefaultPojoBinding<P>) bindingMap.get(pojoType); if (binding == null) { binding = new DefaultPojoBinding<>(pojoType); bindingMap.put(pojoType, binding); List<Facet> keyFacets = injectFacetBindings(binding, pojoType); injectKeyBinding(binding, pojoType, keyFacets); } return binding; } DefaultPojoBindingFactory(FacetProvider facetProvider, ConverterRegistry converterRegistry, NamingStrategy namingStrategy); }
DefaultPojoBindingFactory implements PojoBindingFactory { @Override @SuppressWarnings("unchecked") public synchronized <P> PojoBinding<P> createPojoBinding(Class<P> pojoType) { DefaultPojoBinding<P> binding = (DefaultPojoBinding<P>) bindingMap.get(pojoType); if (binding == null) { binding = new DefaultPojoBinding<>(pojoType); bindingMap.put(pojoType, binding); List<Facet> keyFacets = injectFacetBindings(binding, pojoType); injectKeyBinding(binding, pojoType, keyFacets); } return binding; } DefaultPojoBindingFactory(FacetProvider facetProvider, ConverterRegistry converterRegistry, NamingStrategy namingStrategy); @Override @SuppressWarnings("unchecked") synchronized PojoBinding<P> createPojoBinding(Class<P> pojoType); }
DefaultPojoBindingFactory implements PojoBindingFactory { @Override @SuppressWarnings("unchecked") public synchronized <P> PojoBinding<P> createPojoBinding(Class<P> pojoType) { DefaultPojoBinding<P> binding = (DefaultPojoBinding<P>) bindingMap.get(pojoType); if (binding == null) { binding = new DefaultPojoBinding<>(pojoType); bindingMap.put(pojoType, binding); List<Facet> keyFacets = injectFacetBindings(binding, pojoType); injectKeyBinding(binding, pojoType, keyFacets); } return binding; } DefaultPojoBindingFactory(FacetProvider facetProvider, ConverterRegistry converterRegistry, NamingStrategy namingStrategy); @Override @SuppressWarnings("unchecked") synchronized PojoBinding<P> createPojoBinding(Class<P> pojoType);  }