/** * spi classes * * @param importingClassMetadata importingClassMetadata * @return String[] */ @Override @NonNull public String[] selectImports(@NonNull AnnotationMetadata importingClassMetadata) { return new String[]{"com.codingapi.txlcn.spi.MessageConfiguration", "com.codingapi.txlcn.client.spi.SleuthConfiguration"}; } }
/** * Return the description of the resource that the bean definition came from. */ @Override @NonNull public String getResourceDescription() { return String.valueOf(super.getResourceDescription()); }
/** * Return the name of the bean. */ @Override @NonNull public String getBeanName() { return String.valueOf(super.getBeanName()); }
@Override @NonNull public String getPath() { return this.path.getPath(); }
@NonNull private static List<MediaType> acceptedMediaTypes(ServerRequest.Headers headers) { List<MediaType> acceptedMediaTypes = headers.accept(); if (acceptedMediaTypes.isEmpty()) { acceptedMediaTypes = Collections.singletonList(MediaType.ALL); } else { MediaType.sortBySpecificityAndQuality(acceptedMediaTypes); } return acceptedMediaTypes; }
/** * Return the description of the resource that the bean definition came from. */ @Override @NonNull public String getResourceDescription() { return String.valueOf(super.getResourceDescription()); }
@Override @NonNull public String getPath() { return this.path.getPath(); }
/** * Return the name of the bean. */ @Override @NonNull public String getBeanName() { return String.valueOf(super.getBeanName()); }
/** * Pre-checks the arguments, calls {@link #doTranslate}, and invokes the * {@link #getFallbackTranslator() fallback translator} if necessary. */ @Override @NonNull public DataAccessException translate(String task, @Nullable String sql, SQLException ex) { Assert.notNull(ex, "Cannot translate a null SQLException"); DataAccessException dae = doTranslate(task, sql, ex); if (dae != null) { // Specific exception match found. return dae; } // Looking for a fallback... SQLExceptionTranslator fallback = getFallbackTranslator(); if (fallback != null) { dae = fallback.translate(task, sql, ex); if (dae != null) { // Fallback exception match found. return dae; } } // We couldn't identify it more precisely. return new UncategorizedSQLException(task, sql, ex); }
@NonNull @Override public Object resolveArgument(MethodParameter parameter,
@Override @NonNull // override Message<?> toMessage(byte[] bytes, @Nullable Map<String, Object> headers);
@Override public void setBeanFactory(@NonNull BeanFactory beanFactory) { super.setBeanFactory(beanFactory); this.delegate.setBeanFactory(beanFactory); }
@Override public void setBeanFactory(@NonNull BeanFactory beanFactory) { super.setBeanFactory(beanFactory); this.delegate.setBeanFactory(beanFactory); }
@KafkaHandler public void bar(@NonNull String bar) { if ("junk".equals(bar)) { throw new RuntimeException("intentional"); } else { this.latch1.countDown(); } }
@Override public void setBeanFactory(@NonNull BeanFactory beanFactory) { super.setBeanFactory(beanFactory); ((DefaultMessageHandlerMethodFactory) this.messageHandlerMethodFactory).setBeanFactory(beanFactory); if (beanFactory instanceof ConfigurableListableBeanFactory) { BeanExpressionResolver beanExpressionResolver = ((ConfigurableListableBeanFactory) beanFactory) .getBeanExpressionResolver(); if (beanExpressionResolver != null) { this.resolver = beanExpressionResolver; } this.expressionContext = new BeanExpressionContext((ConfigurableListableBeanFactory) beanFactory, null); } }
/** * Returns the {@link String name} of the {@link org.apache.geode.cache.Region} * in which this {@link PersistentEntity} will be stored. * * @return the {@link String name} of the {@link org.apache.geode.cache.Region} * in which this {@link PersistentEntity} will be stored. * @see org.apache.geode.cache.Region#getName() */ @NonNull public String getRegionName() { return this.regionName; }
/** * Returns a reference to the configured {@link GemfireMappingContext mapping context} used to handling mapping * logic between Pivotal GemFire persistent entities and application domain object {@link Class types}. * * @return a reference to the configured {@link GemfireMappingContext mapping context} for Pivotal GemFire. * @see org.springframework.data.gemfire.mapping.GemfireMappingContext */ @NonNull protected GemfireMappingContext getMappingContext() { return this.mappingContext; }
/** * Returns an empty {@link Iterable} object. * * @param <T> {@link Class} type of the elements in the {@link Iterable}. * @return an empty {@link Iterable}. * @see java.lang.Iterable * @see #nullSafeIterable(Iterable) */ @NonNull public static <T> Iterable<T> emptyIterable() { return Collections::emptyIterator; }
@NonNull @SuppressWarnings("unchecked") QueryPostProcessor<?, String> getQueryPostProcessor() { return (QueryPostProcessor<?, String>) this.queryPostProcessor; }
/** * Returns a reference to the configured {@link Logger} used to log {@link String messages} * about the functions of this {@link PdxSerializer}. * * @return a reference to the configured {@link Logger}. * @see org.slf4j.Logger */ @NonNull protected Logger getLogger() { return this.logger; }