Ejemplo n.º 1
0
 private void deleteBranches() {
   _jgit = (JGitOperator) SpringContextHolder.getInstance().getBean("jgitOperator");
   List<String> branchesToBeDeleteList =
       branchesToBeDelete(_jgit.getBranchesList(_jgit.retreiveBranches()));
   if (!CollectionUtils.isNullOrEmpty(branchesToBeDeleteList))
     _jgit.deleteBranch(
         true, branchesToBeDeleteList.toArray(new String[branchesToBeDeleteList.size()]));
 }
Ejemplo n.º 2
0
  private static Object getBean(String beanId, Object... constructorArgs) {

    return SpringContextHolder.getInstance().getBean(beanId, constructorArgs);
  }