private void setDataBinding(AbstractServiceFactoryBean factory, DataBinding annotation) { if (annotation != null && factory.getDataBinding(false) == null) { try { if (!StringUtils.isEmpty(annotation.ref())) { factory.setDataBinding(factory.getBus().getExtension(ResourceManager.class) .resolveResource(annotation.ref(), annotation.value())); } factory.setDataBinding(annotation.value().newInstance()); } catch (Exception e) { //REVISIT - log a warning } } }
private void setDataBinding(AbstractServiceFactoryBean factory, DataBinding annotation) { if (annotation != null && factory.getDataBinding(false) == null) { try { if (!StringUtils.isEmpty(annotation.ref())) { factory.setDataBinding(factory.getBus().getExtension(ResourceManager.class) .resolveResource(annotation.ref(), annotation.value())); } factory.setDataBinding(annotation.value().newInstance()); } catch (Exception e) { //REVISIT - log a warning } } }
private void setDataBinding(AbstractServiceFactoryBean factory, DataBinding annotation) { if (annotation != null && factory.getDataBinding(false) == null) { try { if (!StringUtils.isEmpty(annotation.ref())) { factory.setDataBinding(factory.getBus().getExtension(ResourceManager.class) .resolveResource(annotation.ref(), annotation.value())); } factory.setDataBinding(annotation.value().newInstance()); } catch (Exception e) { //REVISIT - log a warning } } }
private void setDataBinding(AbstractServiceFactoryBean factory, DataBinding annotation) { if (annotation != null && factory.getDataBinding(false) == null) { try { if (!StringUtils.isEmpty(annotation.ref())) { factory.setDataBinding(factory.getBus().getExtension(ResourceManager.class) .resolveResource(annotation.ref(), annotation.value())); } factory.setDataBinding(annotation.value().newInstance()); } catch (Exception e) { //REVISIT - log a warning } } }