/** @deprecated As of release 6.0.0, replaced with {@link #getAnnotations(String)}. */ public Collection<Annotation> getAnnotations() { return getAnnotations(null); }
private static void destroyBinder(Component comp) { if (!((AbstractComponent) comp).getAnnotations("viewModel").isEmpty()) { Binder binder = BinderUtil.getBinder(comp); if (binder != null) { binder.destroy(comp, binder.getViewModel()); } } for (Component child: comp.getChildren()) { destroyBinder(child); } } }