當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。