Esempio n. 1
0
 private static boolean isRecursiveSubResource(ClassResourceInfo parent, ClassResourceInfo sub) {
   if (parent == null) {
     return false;
   }
   if (parent == sub) {
     return true;
   }
   return isRecursiveSubResource(parent.getParent(), sub);
 }
Esempio n. 2
0
 private static ClassResourceInfo getAncestorWithSameServiceClass(
     ClassResourceInfo parent, Class<?> subClass) {
   if (parent == null) {
     return null;
   }
   if (parent.getServiceClass() == subClass) {
     return parent;
   }
   return getAncestorWithSameServiceClass(parent.getParent(), subClass);
 }