@Override public String toString() { return Join.join(",", this); } }
args.addAll(jvmOpts); final Set<Map.Entry<Object, Object>> collection = properties.entrySet(); args.addAll(Join.strings(collection, new SystemPropertiesCallback())); if (debug) { args.add("-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=" + debugPort); System.out.println(Join.join("\n", args));
@Override public String toString() { return Join.join(",", this); } }
public String marshal(List<String> list) { return Join.join(", ", list); } }
public String toString() { return "Circuit(" + Join.join(",", unwrap(nodes)) + ")"; } }
public String marshal(final List<String> list) { return Join.join(", ", list); } }
public String marshal(final List<String> list) { return Join.join(", ", list); } }
public OAuth2Exception(String name, String errorCode, String description) { super(Join.join(": ", name, errorCode, description)); } }
public String toString() { return "Circuit(" + Join.join(",", unwrap(nodes)) + ")"; } }
public String toString() { return "Node("+ name +" : "+ Join.join(",", unwrap(references))+")"; } }
public String toString() { return "Circuit(" + Join.join(",", unwrap(nodes)) + ")"; } }
public static String toString(final MethodInfo i) { String s = i.ejbName; s += " : "; s += i.methodIntf == null ? "*" : i.methodIntf; s += " : "; s += i.className; s += " : "; s += i.methodName; s += "("; if (i.methodParams != null) { s += Join.join(", ", i.methodParams); } else { s += "*"; } s += ")"; return s; }
public static String toString(final MethodInfo i) { String s = i.ejbName; s += " : "; s += i.methodIntf == null ? "*" : i.methodIntf; s += " : "; s += i.className; s += " : "; s += i.methodName; s += "("; if (i.methodParams != null) { s += Join.join(", ", i.methodParams); } else { s += "*"; } s += ")"; return s; }
public static String toString(MethodInfo i) { String s = i.ejbName; s += " : "; s += (i.methodIntf == null) ? "*" : i.methodIntf; s += " : "; s += i.className; s += " : "; s += i.methodName; s += "("; if (i.methodParams != null) { s += Join.join(", ", i.methodParams); } else { s += "*"; } s += ")"; return s; }
private String getContainerIds(final Collection<ContainerInfo> containerInfos) { final Set<String> containerIds = new HashSet<String>(); for (final ContainerInfo containerInfo : containerInfos) { containerIds.add(containerInfo.id); } return Join.join(", ", containerIds); }
public static String guessVersion(final String groupId, final String artifactId) { final String[] keys = {artifactId + ".version", groupId + ".version", "version"}; for (final String key : keys) { final String value = System.getProperty(key); if (value != null) { return value; } } final String message = String.format("Cannot find version for %s:%s. Checked the following system properties: %s", groupId, artifactId, Join.join(", ", keys)); throw new IllegalStateException(message); } }
public ProviderCircularReferenceException(final Set<ID> ids) { super(String.format("Circular reference: %s -> %s", Join.join(" -> ", ids), ids.iterator().next())); this.ids = ids; }
public static int getIsolationLevel(final String s) { if (!isolation.containsKey(s)) { throw new IllegalArgumentException("No such transaction isolation level '" + s + "'. Possible values are " + Join.join(", ", isolation.keySet())); } final int level = isolation.get(s); return level; }
public ProviderCircularReferenceException(final Set<ID> ids) { super(String.format("Circular reference: %s -> %s", Join.join(" -> ", ids), ids.iterator().next())); this.ids = ids; }
public static int getIsolationLevel(final String s) { if (!isolation.containsKey(s)) { throw new IllegalArgumentException("No such transaction isolation level '" + s + "'. Possible values are " + Join.join(", ", isolation.keySet())); } final int level = isolation.get(s); return level; }