当前位置: 首页>>代码示例>>Java>>正文


Java Ordered.LOWEST_PRECEDENCE属性代码示例

本文整理汇总了Java中org.springframework.core.Ordered.LOWEST_PRECEDENCE属性的典型用法代码示例。如果您正苦于以下问题:Java Ordered.LOWEST_PRECEDENCE属性的具体用法?Java Ordered.LOWEST_PRECEDENCE怎么用?Java Ordered.LOWEST_PRECEDENCE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.springframework.core.Ordered的用法示例。


在下文中一共展示了Ordered.LOWEST_PRECEDENCE属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: handleConfigHasBeenLoaded

@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleConfigHasBeenLoaded(final ConfigHasBeenLoadedEvent event) {
    logger.debug("Send ConfigHasBeenLoadedEvent to clients.");

    this.messagingTemplate.convertAndSend("/config", new ConfigHasBeenLoadedPayload(event));
}
 
开发者ID:anthonyraymond,项目名称:joal,代码行数:7,代码来源:WebConfigEventListener.java

示例2: getOrder

@Override
public int getOrder() {
	if (this.beanFactory.isSingleton(this.aspectBeanName) &&
			this.beanFactory.isTypeMatch(this.aspectBeanName, Ordered.class)) {
		return ((Ordered) this.beanFactory.getBean(this.aspectBeanName)).getOrder();
	}
	return Ordered.LOWEST_PRECEDENCE;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:8,代码来源:SimpleBeanFactoryAwareAspectInstanceFactory.java

示例3: handleConfigHasChanged

@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleConfigHasChanged(final ConfigHasChangedEvent event) {
    logger.debug("Send ConfigHasChangedEvent to clients.");

    this.messagingTemplate.convertAndSend("/config", new ConfigHasChangedPayload(event));
}
 
开发者ID:anthonyraymond,项目名称:joal,代码行数:7,代码来源:WebConfigEventListener.java

示例4: getOrderForAspectClass

/**
 * Check whether the aspect class carries an
 * {@link org.springframework.core.annotation.Order} annotation,
 * falling back to {@code Ordered.LOWEST_PRECEDENCE}.
 * @see org.springframework.core.annotation.Order
 */
@Override
protected int getOrderForAspectClass(Class<?> aspectClass) {
	Order order = AnnotationUtils.findAnnotation(aspectClass, Order.class);
	if (order != null) {
		return order.value();
	}
	return Ordered.LOWEST_PRECEDENCE;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:14,代码来源:SingletonMetadataAwareAspectInstanceFactory.java

示例5: handleSomethingHasFuckedUp

@Async
@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleSomethingHasFuckedUp(final SomethingHasFuckedUpEvent event) {
    // We caught an unrecoverable exception in a thread, we better stop right now.
    logger.error("Event SomethingHasFuckedUpEvent caught.", event.getException());
    // Stop the application
    SpringApplication.exit(appContext, () -> 42);
}
 
开发者ID:anthonyraymond,项目名称:joal,代码行数:9,代码来源:CoreEventListener.java

示例6: handleTorrentFileDeleted

@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleTorrentFileDeleted(final TorrentFileDeletedEvent event) {
    logger.debug("Send TorrentFileDeletedPayload to clients.");

    this.messagingTemplate.convertAndSend("/torrents", new TorrentFileDeletedPayload(event));
}
 
开发者ID:anthonyraymond,项目名称:joal,代码行数:7,代码来源:WebTorrentFileEventListener.java

示例7: handleAnnouncerWillAnnounce

@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleAnnouncerWillAnnounce(final AnnouncerWillAnnounceEvent event) {
    logger.debug("Send AnnouncerWillAnnounceEvent to clients.");

    this.messagingTemplate.convertAndSend("/announce", new AnnouncerWillAnnouncePayload(event));
}
 
开发者ID:anthonyraymond,项目名称:joal,代码行数:7,代码来源:WebAnnounceEventListener.java

示例8: handleClientFilesDiscovered

@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleClientFilesDiscovered(final ClientFilesDiscoveredEvent event) {
    logger.debug("Send ClientFilesDiscoveredEvent to clients.");

    this.messagingTemplate.convertAndSend("/config", new ClientFilesDiscoveredPayload(event));
}
 
开发者ID:anthonyraymond,项目名称:joal,代码行数:7,代码来源:WebConfigEventListener.java

示例9: handleAnnounceHasStopped

@Order(Ordered.LOWEST_PRECEDENCE)
@EventListener
void handleAnnounceHasStopped(final AnnouncerHasStoppedEvent event) {
    logger.debug("Send AnnouncerHasStoppedEvent to clients.");

    this.messagingTemplate.convertAndSend("/announce", new AnnouncerHasStoppedPayload(event));
}
 
开发者ID:anthonyraymond,项目名称:joal,代码行数:7,代码来源:WebAnnounceEventListener.java

示例10: getOrder

@Override
public int getOrder() {
  return Ordered.LOWEST_PRECEDENCE;
}
 
开发者ID:apache,项目名称:incubator-servicecomb-java-chassis,代码行数:4,代码来源:LastPropertyPlaceholderConfigurer.java

示例11: DefaultTicketDefinition

public DefaultTicketDefinition(final Class<? extends Ticket> implementationClass, final String prefix) {
    this(implementationClass, prefix, Ordered.LOWEST_PRECEDENCE);
}
 
开发者ID:mrluo735,项目名称:cas-5.1.0,代码行数:3,代码来源:DefaultTicketDefinition.java

示例12: getPhase

@Override
public int getPhase() {
  return Ordered.LOWEST_PRECEDENCE;
}
 
开发者ID:bighector,项目名称:-artemis-disruptor-miaosha,代码行数:4,代码来源:ItemDataStartupLoader.java

示例13: getOrder

@Override
public int getOrder() {
    return Ordered.LOWEST_PRECEDENCE;
}
 
开发者ID:airsonic,项目名称:airsonic,代码行数:4,代码来源:DefaultPlaylistExportHandler.java

示例14: getOrder

@Override
public int getOrder() {
	return Ordered.LOWEST_PRECEDENCE;
}
 
开发者ID:ctodb,项目名称:push,代码行数:4,代码来源:ApplicationReadyEventListener.java

示例15: getOrder

@Override
public int getOrder() {
    return Ordered.LOWEST_PRECEDENCE - 30000;
}
 
开发者ID:FastBootWeixin,项目名称:FastBootWeixin,代码行数:4,代码来源:WxStringResponseBodyAdvice.java


注:本文中的org.springframework.core.Ordered.LOWEST_PRECEDENCE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。