INNER CODE UNIT · Java

supplier

spring-cloud/spring-cloud-zookeeper · spring-cloud-zookeeper-core/src/main/java/org/springframework/cloud/zookeeper/CuratorFactory.java:172

	private static <T> Supplier<T> supplier(BootstrapContext context, Class<T> type) {
		try {
			// TODO: use new apis after milestone release
			T instance = context.get(type);
			return () -> instance;
		}
		catch (IllegalStateException e) {
			return () -> null;
		}
	}

	private static class ZookeeperConnectException extends ConfigDataException {

		/**
		 * Create a new {@link ConfigDataException} instance.
		 * @param message the exception message
		 * @param cause the exception cause
		 */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…