Refine search
/** * * @param key * @return the string value of the system property or <code>null</code> */ static String getSystemProperty(String key) { try { return AccessController.doPrivileged(new GetSystemPropertyAction(key)); } catch (Throwable ignore) { return null; } }
/** * * @param key * @return the string value of the system property or <code>null</code> */ static String getSystemProperty(String key) { try { return AccessController.doPrivileged(new GetSystemPropertyAction(key)); } catch (Throwable ignore) { return null; } }
/** * * @param key * @return the string value of the system property or <code>null</code> */ static String getSystemProperty(String key) { try { return AccessController.doPrivileged(new GetSystemPropertyAction(key)); } catch (Throwable ignore) { return null; } }
/** * * @param key * @return the string value of the system property or <code>null</code> */ static String getSystemProperty(String key) { try { return AccessController.doPrivileged(new GetSystemPropertyAction(key)); } catch (Throwable ignore) { return null; } }
/** * * @param key * @return the string value of the system property or <code>null</code> */ static String getSystemProperty(String key) { try { return AccessController.doPrivileged(new GetSystemPropertyAction(key)); } catch (Throwable ignore) { return null; } }
/** * * @param key * @return the string value of the system property or <code>null</code> */ static String getSystemProperty(String key) { try { return AccessController.doPrivileged(new GetSystemPropertyAction(key)); } catch (Throwable ignore) { return null; } }
protected boolean isEnabled(String key, boolean defaultValue) { Object value = properties.get(key); if (value != null) { return Boolean.TRUE.equals(value); } String system = AccessController.doPrivileged(new GetSystemPropertyAction(key)); if (system != null) { return Boolean.valueOf(system); } return defaultValue; }
protected boolean isEnabled(String key, boolean defaultValue) { Object value = properties.get(key); if (value != null) { return Boolean.TRUE.equals(value); } String system = AccessController.doPrivileged(new GetSystemPropertyAction(key)); if (system != null) { return Boolean.valueOf(system); } return defaultValue; }
protected boolean isEnabled(String key, boolean defaultValue) { Object value = properties.get(key); if (value != null) { return Boolean.TRUE.equals(value); } String system = AccessController.doPrivileged(new GetSystemPropertyAction(key)); if (system != null) { return Boolean.valueOf(system); } return defaultValue; }
protected boolean isEnabled(String key, boolean defaultValue) { Object value = properties.get(key); if (value != null) { return Boolean.TRUE.equals(value); } String system = AccessController.doPrivileged(new GetSystemPropertyAction(key)); if (system != null) { return Boolean.valueOf(system); } return defaultValue; }
@Override public List<ScanResult> scan() { String javaClassPath = AccessController.doPrivileged(new GetSystemPropertyAction(JAVA_CLASS_PATH_SYSTEM_PROPERTY)); if (javaClassPath == null) { throw CommonLogger.LOG.cannotReadJavaClassPathSystemProperty(); } ImmutableList.Builder<ScanResult> results = ImmutableList.builder(); Set<String> entries = ImmutableSet.of(javaClassPath.split(Pattern.quote(File.pathSeparator))); logger.debugv("Scanning class path entries: {0}", entries); for (String entry : entries) { if (entry == null || entry.isEmpty()) { continue; } File entryFile = new File(entry); if (!entryFile.canRead()) { throw CommonLogger.LOG.cannotReadClassPathEntry(entryFile); } try { if (entryFile.isDirectory()) { scanDirectory(entryFile, results); } else { scanJarFile(entryFile, results); } } catch (IOException e) { throw CommonLogger.LOG.cannotScanClassPathEntry(entryFile, e); } } return results.build(); }
@Override public List<ScanResult> scan() { String javaClassPath = AccessController.doPrivileged(new GetSystemPropertyAction(JAVA_CLASS_PATH_SYSTEM_PROPERTY)); if (javaClassPath == null) { throw CommonLogger.LOG.cannotReadJavaClassPathSystemProperty(); } ImmutableList.Builder<ScanResult> results = ImmutableList.builder(); Set<String> entries = ImmutableSet.of(javaClassPath.split(Pattern.quote(File.pathSeparator))); logger.debugv("Scanning class path entries: {0}", entries); for (String entry : entries) { if (entry == null || entry.isEmpty()) { continue; } File entryFile = new File(entry); if (!entryFile.canRead()) { throw CommonLogger.LOG.cannotReadClassPathEntry(entryFile); } try { if (entryFile.isDirectory()) { scanDirectory(entryFile, results); } else { scanJarFile(entryFile, results); } } catch (IOException e) { throw CommonLogger.LOG.cannotScanClassPathEntry(entryFile, e); } } return results.build(); }
@Override public List<ScanResult> scan() { String javaClassPath = AccessController.doPrivileged(new GetSystemPropertyAction(JAVA_CLASS_PATH_SYSTEM_PROPERTY)); if (javaClassPath == null) { throw CommonLogger.LOG.cannotReadJavaClassPathSystemProperty(); } ImmutableList.Builder<ScanResult> results = ImmutableList.builder(); Set<String> entries = ImmutableSet.of(javaClassPath.split(Pattern.quote(File.pathSeparator))); logger.debugv("Scanning class path entries: {0}", entries); for (String entry : entries) { if (entry == null || entry.isEmpty()) { continue; } File entryFile = new File(entry); if (!entryFile.canRead()) { throw CommonLogger.LOG.cannotReadClassPathEntry(entryFile); } try { if (entryFile.isDirectory()) { scanDirectory(entryFile, results); } else { scanJarFile(entryFile, results); } } catch (IOException e) { throw CommonLogger.LOG.cannotScanClassPathEntry(entryFile, e); } } return results.build(); }
@Override public List<ScanResult> scan() { String javaClassPath = AccessController.doPrivileged(new GetSystemPropertyAction(JAVA_CLASS_PATH_SYSTEM_PROPERTY)); if (javaClassPath == null) { throw CommonLogger.LOG.cannotReadJavaClassPathSystemProperty(); } ImmutableList.Builder<ScanResult> results = ImmutableList.builder(); Set<String> entries = ImmutableSet.of(javaClassPath.split(Pattern.quote(File.pathSeparator))); logger.debugv("Scanning class path entries: {0}", entries); for (String entry : entries) { if (entry == null || entry.isEmpty()) { continue; } File entryFile = new File(entry); if (!entryFile.canRead()) { throw CommonLogger.LOG.cannotReadClassPathEntry(entryFile); } try { if (entryFile.isDirectory()) { scanDirectory(entryFile, results); } else { scanJarFile(entryFile, results); } } catch (IOException e) { throw CommonLogger.LOG.cannotScanClassPathEntry(entryFile, e); } } return results.build(); }
@Override public List<ScanResult> scan() { String javaClassPath = AccessController.doPrivileged(new GetSystemPropertyAction(JAVA_CLASS_PATH_SYSTEM_PROPERTY)); if (javaClassPath == null) { throw CommonLogger.LOG.cannotReadJavaClassPathSystemProperty(); } ImmutableList.Builder<ScanResult> results = ImmutableList.builder(); Set<String> entries = ImmutableSet.of(javaClassPath.split(Pattern.quote(File.pathSeparator))); logger.debugv("Scanning class path entries: {0}", entries); for (String entry : entries) { if (entry == null || entry.isEmpty()) { continue; } File entryFile = new File(entry); if (!entryFile.canRead()) { throw CommonLogger.LOG.cannotReadClassPathEntry(entryFile); } try { if (entryFile.isDirectory()) { scanDirectory(entryFile, results); } else { scanJarFile(entryFile, results); } } catch (IOException e) { throw CommonLogger.LOG.cannotScanClassPathEntry(entryFile, e); } } return results.build(); }
@Override public List<ScanResult> scan() { String javaClassPath = AccessController.doPrivileged(new GetSystemPropertyAction(JAVA_CLASS_PATH_SYSTEM_PROPERTY)); if (javaClassPath == null) { throw CommonLogger.LOG.cannotReadJavaClassPathSystemProperty(); } ImmutableList.Builder<ScanResult> results = ImmutableList.builder(); Set<String> entries = ImmutableSet.of(javaClassPath.split(Pattern.quote(File.pathSeparator))); logger.debugv("Scanning class path entries: {0}", entries); for (String entry : entries) { if (entry == null || entry.isEmpty()) { continue; } File entryFile = new File(entry); if (!entryFile.canRead()) { throw CommonLogger.LOG.cannotReadClassPathEntry(entryFile); } try { if (entryFile.isDirectory()) { scanDirectory(entryFile, results); } else { scanJarFile(entryFile, results); } } catch (IOException e) { throw CommonLogger.LOG.cannotScanClassPathEntry(entryFile, e); } } return results.build(); }
@Override public List<ScanResult> scan() { String javaClassPath = AccessController.doPrivileged(new GetSystemPropertyAction(JAVA_CLASS_PATH_SYSTEM_PROPERTY)); if (javaClassPath == null) { throw CommonLogger.LOG.cannotReadJavaClassPathSystemProperty(); } ImmutableList.Builder<ScanResult> results = ImmutableList.builder(); Set<String> entries = ImmutableSet.of(javaClassPath.split(Pattern.quote(File.pathSeparator))); logger.debugv("Scanning class path entries: {0}", entries); for (String entry : entries) { if (entry == null || entry.isEmpty()) { continue; } File entryFile = new File(entry); if (!entryFile.canRead()) { throw CommonLogger.LOG.cannotReadClassPathEntry(entryFile); } try { if (entryFile.isDirectory()) { scanDirectory(entryFile, results); } else { scanJarFile(entryFile, results); } } catch (IOException e) { throw CommonLogger.LOG.cannotScanClassPathEntry(entryFile, e); } } return results.build(); }
String actualPropertyValue = AccessController.doPrivileged(new GetSystemPropertyAction(propertyName)); if (requiredPropertyValue == null) { active = active && isNotNull(actualPropertyValue, propertyNameInverted);
String actualPropertyValue = AccessController.doPrivileged(new GetSystemPropertyAction(propertyName)); if (requiredPropertyValue == null) { active = active && isNotNull(actualPropertyValue, propertyNameInverted);
String actualPropertyValue = AccessController.doPrivileged(new GetSystemPropertyAction(propertyName)); if (requiredPropertyValue == null) { active = active && isNotNull(actualPropertyValue, propertyNameInverted);