@SuppressWarnings("deprecation") @Test public void testTwoDefaultModelObjectMethodAnnotations() { PmoWithTwoDefaultModelObjectMethods pmoWithTwoDefaultModelObjects = new PmoWithTwoDefaultModelObjectMethods(); Assertions .assertThrows(org.linkki.core.binding.descriptor.UIElementAnnotationReader.ModelObjectAnnotationException.class, () -> { UIElementAnnotationReader .getModelObjectSupplier(pmoWithTwoDefaultModelObjects, ModelObject.DEFAULT_NAME) .get(); }); }
@Deprecated public static Supplier<?> getModelObjectSupplier(Object pmo, String modelObjectName) { try { return ModelObjects.supplierFor(pmo, modelObjectName); } catch (org.linkki.core.binding.descriptor.modelobject.ModelObjects.ModelObjectAnnotationException e) { throw new ModelObjectAnnotationException(e.getMessage()); } }
UIElementAnnotationReader { @Deprecated public static Supplier<?> getModelObjectSupplier(Object pmo, String modelObjectName) { try { return ModelObjects.supplierFor(pmo, modelObjectName); } catch (org.linkki.core.binding.descriptor.modelobject.ModelObjects.ModelObjectAnnotationException e) { throw new ModelObjectAnnotationException(e.getMessage()); } } }
UIElementAnnotationReader { @Deprecated public static Supplier<?> getModelObjectSupplier(Object pmo, String modelObjectName) { try { return ModelObjects.supplierFor(pmo, modelObjectName); } catch (org.linkki.core.binding.descriptor.modelobject.ModelObjects.ModelObjectAnnotationException e) { throw new ModelObjectAnnotationException(e.getMessage()); } } UIElementAnnotationReader(Class<?> annotatedClass); }
UIElementAnnotationReader { @Deprecated public static Supplier<?> getModelObjectSupplier(Object pmo, String modelObjectName) { try { return ModelObjects.supplierFor(pmo, modelObjectName); } catch (org.linkki.core.binding.descriptor.modelobject.ModelObjects.ModelObjectAnnotationException e) { throw new ModelObjectAnnotationException(e.getMessage()); } } UIElementAnnotationReader(Class<?> annotatedClass); PropertyElementDescriptors findDescriptors(String propertyName); Stream<PropertyElementDescriptors> getUiElements(); @Deprecated static Supplier<?> getModelObjectSupplier(Object pmo, String modelObjectName); @Deprecated static boolean hasModelObjectAnnotation(Object pmo, String modelObjectName); }
UIElementAnnotationReader { @Deprecated public static Supplier<?> getModelObjectSupplier(Object pmo, String modelObjectName) { try { return ModelObjects.supplierFor(pmo, modelObjectName); } catch (org.linkki.core.binding.descriptor.modelobject.ModelObjects.ModelObjectAnnotationException e) { throw new ModelObjectAnnotationException(e.getMessage()); } } UIElementAnnotationReader(Class<?> annotatedClass); PropertyElementDescriptors findDescriptors(String propertyName); Stream<PropertyElementDescriptors> getUiElements(); @Deprecated static Supplier<?> getModelObjectSupplier(Object pmo, String modelObjectName); @Deprecated static boolean hasModelObjectAnnotation(Object pmo, String modelObjectName);  }