本文整理了Java中org.springframework.lang.NonNull.<init>()
方法的一些代码示例,展示了NonNull.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NonNull.<init>()
方法的具体详情如下:
包路径:org.springframework.lang.NonNull
类名称:NonNull
方法名:<init>
暂无
代码示例来源:origin: codingapi/tx-lcn
/**
* 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"};
}
}
代码示例来源:origin: spring-projects/spring-framework
/**
* Return the description of the resource that the bean definition came from.
*/
@Override
@NonNull
public String getResourceDescription() {
return String.valueOf(super.getResourceDescription());
}
代码示例来源:origin: spring-projects/spring-framework
/**
* Return the name of the bean.
*/
@Override
@NonNull
public String getBeanName() {
return String.valueOf(super.getBeanName());
}
代码示例来源:origin: spring-projects/spring-framework
@Override
@NonNull
public String getPath() {
return this.path.getPath();
}
代码示例来源:origin: spring-projects/spring-framework
@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;
}
代码示例来源:origin: org.springframework/spring-beans
/**
* Return the description of the resource that the bean definition came from.
*/
@Override
@NonNull
public String getResourceDescription() {
return String.valueOf(super.getResourceDescription());
}
代码示例来源:origin: org.springframework/spring-web
@Override
@NonNull
public String getPath() {
return this.path.getPath();
}
代码示例来源:origin: org.springframework/spring-beans
/**
* Return the name of the bean.
*/
@Override
@NonNull
public String getBeanName() {
return String.valueOf(super.getBeanName());
}
代码示例来源:origin: spring-projects/spring-framework
/**
* 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);
}
代码示例来源:origin: spring-projects/spring-security
@NonNull
@Override
public Object resolveArgument(MethodParameter parameter,
代码示例来源:origin: spring-projects/spring-integration
@Override
@NonNull // override
Message<?> toMessage(byte[] bytes, @Nullable Map<String, Object> headers);
代码示例来源:origin: spring-projects/spring-integration
@Override
public void setBeanFactory(@NonNull BeanFactory beanFactory) {
super.setBeanFactory(beanFactory);
this.delegate.setBeanFactory(beanFactory);
}
代码示例来源:origin: spring-projects/spring-integration
@Override
public void setBeanFactory(@NonNull BeanFactory beanFactory) {
super.setBeanFactory(beanFactory);
this.delegate.setBeanFactory(beanFactory);
}
代码示例来源:origin: spring-projects/spring-kafka
@KafkaHandler
public void bar(@NonNull String bar) {
if ("junk".equals(bar)) {
throw new RuntimeException("intentional");
}
else {
this.latch1.countDown();
}
}
代码示例来源:origin: spring-projects/spring-integration
@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);
}
}
代码示例来源:origin: babylikebird/Micro-Service-Skeleton
@Override
public void onApplicationEvent(@NonNull EurekaInstanceCanceledEvent event) {
log.info("服务:{}挂了",event.getAppName());
}
}
代码示例来源:origin: babylikebird/Micro-Service-Skeleton
@Override
public void onApplicationEvent(@NonNull EurekaInstanceRegisteredEvent eurekaInstanceRegisteredEvent) {
log.info("服务:{},注册成功了",eurekaInstanceRegisteredEvent.getInstanceInfo().getAppName());
}
}
代码示例来源:origin: org.springframework.integration/spring-integration-core
@Override
public void setBeanFactory(@NonNull BeanFactory beanFactory) {
super.setBeanFactory(beanFactory);
this.delegate.setBeanFactory(beanFactory);
}
代码示例来源:origin: org.springframework.integration/spring-integration-core
@Override
public void setBeanFactory(@NonNull BeanFactory beanFactory) {
super.setBeanFactory(beanFactory);
this.delegate.setBeanFactory(beanFactory);
}
代码示例来源:origin: spring-projects/spring-amqp
@RabbitHandler
@SendTo("${foo.bar:#{sendToRepliesBean}}")
public String bar(@NonNull Bar bar) {
return "BAR: " + bar.field;
}
内容来源于网络,如有侵权,请联系作者删除!