コード例 #1
0
  private void fillInMissingType(JndiConsumer consumer, DeploymentModule module) {
    final ClassLoader loader = module.getClassLoader();

    for (EnvEntry entry : consumer.getEnvEntry()) {
      fillInMissingType(loader, entry);
    }
  }
コード例 #2
0
  private void removeUnsetEnvEntries(JndiConsumer consumer) {
    final Iterator<EnvEntry> entries = consumer.getEnvEntry().iterator();
    while (entries.hasNext()) {
      final EnvEntry entry = entries.next();
      if (entry.getEnvEntryValue() != null) continue;
      if (entry.getLookupName() != null) continue;

      entries.remove();
    }
  }