@Test public void testGraphFactory() { final Class<? extends ElementFactory> graphFactoryType = tested.getGraphFactoryType(instance); assertEquals(GraphFactory.class, graphFactoryType); }
@Override public Class<? extends ElementFactory> getGraphFactoryType(final T definitionSet) { Class<? extends ElementFactory> result = null; if (null != definitionSet) { DefinitionSet annotation = definitionSet.getClass().getAnnotation(DefinitionSet.class); if (null != annotation) { result = annotation.graphFactory(); } } return result; }
BackendDefinitionSetAdapter extends AbstractReflectDefinitionSetAdapter<T> implements DefinitionSetAdapter<T> { @Override public Class<? extends ElementFactory> getGraphFactoryType(final T definitionSet) { Class<? extends ElementFactory> result = null; if (null != definitionSet) { DefinitionSet annotation = definitionSet.getClass().getAnnotation(DefinitionSet.class); if (null != annotation) { result = annotation.graphFactory(); } } return result; } }
BackendDefinitionSetAdapter extends AbstractReflectDefinitionSetAdapter<T> implements DefinitionSetAdapter<T> { @Override public Class<? extends ElementFactory> getGraphFactoryType(final T definitionSet) { Class<? extends ElementFactory> result = null; if (null != definitionSet) { DefinitionSet annotation = definitionSet.getClass().getAnnotation(DefinitionSet.class); if (null != annotation) { result = annotation.graphFactory(); } } return result; } @Inject  BackendDefinitionSetAdapter(final BackendDefinitionAdapter annotatedDefinitionAdapter); }
BackendDefinitionSetAdapter extends AbstractReflectDefinitionSetAdapter<T> implements DefinitionSetAdapter<T> { @Override public Class<? extends ElementFactory> getGraphFactoryType(final T definitionSet) { Class<? extends ElementFactory> result = null; if (null != definitionSet) { DefinitionSet annotation = definitionSet.getClass().getAnnotation(DefinitionSet.class); if (null != annotation) { result = annotation.graphFactory(); } } return result; } @Inject  BackendDefinitionSetAdapter(final BackendDefinitionAdapter annotatedDefinitionAdapter); @Override boolean accepts(final Class<?> pojo); @Override Class<? extends ElementFactory> getGraphFactoryType(final T definitionSet); @Override Annotation getQualifier(final T definitionSet); @Override String getDescription(final T definitionSet); @Override Set<String> getDefinitions(final T definitionSet); }
BackendDefinitionSetAdapter extends AbstractReflectDefinitionSetAdapter<T> implements DefinitionSetAdapter<T> { @Override public Class<? extends ElementFactory> getGraphFactoryType(final T definitionSet) { Class<? extends ElementFactory> result = null; if (null != definitionSet) { DefinitionSet annotation = definitionSet.getClass().getAnnotation(DefinitionSet.class); if (null != annotation) { result = annotation.graphFactory(); } } return result; } @Inject  BackendDefinitionSetAdapter(final BackendDefinitionAdapter annotatedDefinitionAdapter); @Override boolean accepts(final Class<?> pojo); @Override Class<? extends ElementFactory> getGraphFactoryType(final T definitionSet); @Override Annotation getQualifier(final T definitionSet); @Override String getDescription(final T definitionSet); @Override Set<String> getDefinitions(final T definitionSet);  }