本文整理匯總了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));
}
示例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;
}
示例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));
}
示例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;
}
示例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);
}
示例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));
}
示例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));
}
示例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));
}
示例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));
}
示例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);
}
示例12: getPhase
@Override
public int getPhase() {
return Ordered.LOWEST_PRECEDENCE;
}
示例13: getOrder
@Override
public int getOrder() {
return Ordered.LOWEST_PRECEDENCE;
}
示例14: getOrder
@Override
public int getOrder() {
return Ordered.LOWEST_PRECEDENCE;
}
示例15: getOrder
@Override
public int getOrder() {
return Ordered.LOWEST_PRECEDENCE - 30000;
}