@Test public void testGetCategory() { final String category = tested.getCategory(instance); assertEquals(FooTestBean.CATEGORY, category); }
@Override public String getCategory(final T definition) { try { return getAnnotatedFieldValue(definition, Category.class); } catch (Exception e) { LOG.error("Error obtaining annotated category for Definition with id " + getId(definition)); } return null; }
BackendDefinitionAdapter extends AbstractReflectAdapter<T> implements DefinitionAdapter<T>,
                   HasInheritance { @Override public String getCategory(final T definition) { try { return getAnnotatedFieldValue(definition, Category.class); } catch (Exception e) { LOG.error("Error obtaining annotated category for Definition with id " + getId(definition)); } return null; } }
BackendDefinitionAdapter extends AbstractReflectAdapter<T> implements DefinitionAdapter<T>,
                   HasInheritance { @Override public String getCategory(final T definition) { try { return getAnnotatedFieldValue(definition, Category.class); } catch (Exception e) { LOG.error("Error obtaining annotated category for Definition with id " + getId(definition)); } return null; } @Inject  BackendDefinitionAdapter(); }
BackendDefinitionAdapter extends AbstractReflectAdapter<T> implements DefinitionAdapter<T>,
                   HasInheritance { @Override public String getCategory(final T definition) { try { return getAnnotatedFieldValue(definition, Category.class); } catch (Exception e) { LOG.error("Error obtaining annotated category for Definition with id " + getId(definition)); } return null; } @Inject  BackendDefinitionAdapter(); @Override boolean accepts(Class<?> pojo); @Override DefinitionId getId(final T definition); @Override String[] getPropertyFields(final T pojo); @Override String getMetaPropertyField(final T pojo,
                                       final PropertyMetaTypes metaType); @Override String getCategory(final T definition); @Override String getTitle(final T definition); @Override String getDescription(final T definition); @Override @SuppressWarnings("all") String[] getLabels(final T definition); @Override Class<? extends ElementFactory> getGraphFactoryType(final T definition); static Class<? extends ElementFactory> getGraphFactory(final Class<?> type); @Override String getBaseType(final Class<?> type); @Override String[] getTypes(final String baseType); }
BackendDefinitionAdapter extends AbstractReflectAdapter<T> implements DefinitionAdapter<T>,
                   HasInheritance { @Override public String getCategory(final T definition) { try { return getAnnotatedFieldValue(definition, Category.class); } catch (Exception e) { LOG.error("Error obtaining annotated category for Definition with id " + getId(definition)); } return null; } @Inject  BackendDefinitionAdapter(); @Override boolean accepts(Class<?> pojo); @Override DefinitionId getId(final T definition); @Override String[] getPropertyFields(final T pojo); @Override String getMetaPropertyField(final T pojo,
                                       final PropertyMetaTypes metaType); @Override String getCategory(final T definition); @Override String getTitle(final T definition); @Override String getDescription(final T definition); @Override @SuppressWarnings("all") String[] getLabels(final T definition); @Override Class<? extends ElementFactory> getGraphFactoryType(final T definition); static Class<? extends ElementFactory> getGraphFactory(final Class<?> type); @Override String getBaseType(final Class<?> type); @Override String[] getTypes(final String baseType);  }