Package com.google.apphosting.api

Examples of com.google.apphosting.api.AppEngineInternal


    if (classStr.startsWith("java.") || classStr.startsWith("javax.")) {
      return;
    }
    try {
      Class<?> cls = Class.forName(classStr);
      AppEngineInternal anno = getAppEngineInternalAnnotation(cls);
      if (anno != null) {
        String errorMsg = String.format("Class %s loaded from %s has a dependency on class %s "
            + "loaded from %s, which is not part of App Engine's supported API.", callingClassStr,
            callingClassCodeSource, cls.getName(), cls.getProtectionDomain().getCodeSource());
        if (!anno.message().isEmpty()) {
          errorMsg += "\n" + anno.message();
        }
        if (violationIsError) {
          throw new NoClassDefFoundError(errorMsg);
        } else {
          logger.warning(errorMsg + "\nYou are strongly discouraged "
View Full Code Here


    List<String> namesExamined = new LinkedList<String>();
    String name = cls.getName();
    boolean firstPass = true;
    while (name != null) {
      if (internalAnnotationCache.containsKey(name)) {
        AppEngineInternal anno = internalAnnotationCache.get(name);
        updateInternalAnnotationCache(namesExamined, anno);
        return anno;
      }
      try {
        namesExamined.add(name);
        if (!firstPass) {
          cls = Class.forName(name + ".package-info");
        } else {
        }
        AppEngineInternal anno = cls.getAnnotation(AppEngineInternal.class);
        if (anno != null) {
          updateInternalAnnotationCache(namesExamined, anno);
          return anno;
        }
      } catch (ClassNotFoundException cnfe) {
View Full Code Here

TOP

Related Classes of com.google.apphosting.api.AppEngineInternal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.