コード例 #1
0
 private static ExtendedTypeDataFactory getExtendedTypeDataFactory(IJavaType javaType) {
   boolean extendedType;
   if (ExecutionMode.isRuntime()) {
     Class<?> backingClass = javaType.getBackingClass();
     // Server runtime case. We can't go through the IJavaClassInfo for this case, because it leads
     // to a
     // circularity w.r.t. the JavaType (ClassAnnotationInfo attempts to get the JavaType)
     extendedType = backingClass.isAnnotationPresent(ExtendedType.class);
   } else {
     // Studio case
     extendedType = javaType.getBackingClassInfo().getAnnotation(ExtendedType.class) != null;
   }
   return extendedType
       ? CommonServices.getEntityAccess().getExtendedTypeDataFactory(javaType.getName())
       : null;
 }
コード例 #2
0
 private boolean hasRanPreviously() {
   return ExecutionMode.isIDE();
 }