private int getClassLoaderId() { return Environment.isWarDeployed() ? System.identityHashCode(Thread.currentThread().getContextClassLoader()) : System.identityHashCode(getClass().getClassLoader()); } }
/** * This method will return true if the 'grails-app' directory was found, regardless of whether reloading is active or not * * @return True if the development sources are present */ public static boolean isDevelopmentEnvironmentAvailable() { return BuildSettings.GRAILS_APP_DIR_PRESENT && !isStandaloneDeployed() && !isWarDeployed(); }