Swiftkill

For want of

May 5th, 2017 (edited)
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.40 KB | None | 0 0
  1. For the lack of a nail,
  2.     throw new HorseshoeNailNotFoundException("no nails!");
  3.  
  4. For the lack of a horseshoe,
  5.     EquestrianDoctor.getLocalInstance().getHorseDispatcher().shoot();
  6.  
  7. For the lack of a horse,
  8.     RidersGuild.getRiderNotificationSubscriberList().getBroadcaster().run(
  9.       new BroadcastMessage(StableFactory.getNullHorseInstance()));
  10.  
  11. For the lack of a rider,
  12.     MessageDeliverySubsystem.getLogger().logDeliveryFailure(
  13.       MessageFactory.getAbstractMessageInstance(
  14.         new MessageMedium(MessageType.VERBAL),
  15.         new MessageTransport(MessageTransportType.MOUNTED_RIDER),
  16.         new MessageSessionDestination(BattleManager.getRoutingInfo(
  17.                                         BattleLocation.NEAREST))),
  18.       MessageFailureReasonCode.UNKNOWN_RIDER_FAILURE);
  19.  
  20. For the lack of a message,
  21.     ((BattleNotificationSender)
  22.       BattleResourceMediator.getMediatorInstance().getResource(
  23.         BattleParticipant.PROXY_PARTICIPANT,
  24.         BattleResource.BATTLE_NOTIFICATION_SENDER)).sendNotification(
  25.           ((BattleNotificationBuilder)
  26.             (BattleResourceMediator.getMediatorInstance().getResource(
  27.             BattleOrganizer.getBattleParticipant(Battle.Participant.GOOD_GUYS),
  28.             BattleResource.BATTLE_NOTIFICATION_BUILDER))).buildNotification(
  29.               BattleOrganizer.getBattleState(BattleResult.BATTLE_LOST),
  30.               BattleManager.getChainOfCommand().getCommandChainNotifier()));
  31.  
  32. For the lack of a battle,
  33.     try {
  34.         synchronized(BattleInformationRouterLock.getLockInstance()) {
  35.           BattleInformationRouterLock.getLockInstance().wait();
  36.         }
  37.     } catch (InterruptedException ix) {
  38.       if (BattleSessionManager.getBattleStatus(
  39.            BattleResource.getLocalizedBattleResource(Locale.getDefault()),
  40.            BattleContext.createContext(
  41.              Kingdom.getMasterBattleCoordinatorInstance(
  42.                new TweedleBeetlePuddlePaddleBattle()).populate(
  43.                  RegionManager.getArmpitProvince(Armpit.LEFTMOST)))) ==
  44.           BattleStatus.LOST) {
  45.         if (LOGGER.isLoggable(Level.TOTALLY_SCREWED)) {
  46.           LOGGER.logScrewage(BattleLogger.createBattleLogMessage(
  47.             BattleStatusFormatter.format(BattleStatus.LOST_WAR,
  48.                                          Locale.getDefault())));
  49.         }
  50.       }
  51.     }
  52.  
  53. For the lack of a war,
  54.     new ServiceExecutionJoinPoint(
  55.       DistributedQueryAnalyzer.forwardQueryResult(
  56.         NotificationSchemaManager.getAbstractSchemaMapper(
  57.           new PublishSubscribeNotificationSchema()).getSchemaProxy().
  58.             executePublishSubscribeQueryPlan(
  59.               NotificationSchema.ALERT,
  60.               new NotificationSchemaPriority(SchemaPriority.MAX_PRIORITY),
  61.               new PublisherMessage(MessageFactory.getAbstractMessage(
  62.                 MessageType.WRITTEN,
  63.                 new MessageTransport(MessageTransportType.WOUNDED_SURVIVOR),
  64.                 new MessageSessionDestination(
  65.                   DestinationManager.getNullDestinationForQueryPlan()))),
  66.               DistributedWarMachine.getPartyRoleManager().getRegisteredParties(
  67.                 PartyRoleManager.PARTY_KING ||
  68.                 PartyRoleManager.PARTY_GENERAL ||
  69.                 PartyRoleManager.PARTY_AMBASSADOR)).getQueryResult(),
  70.         PriorityMessageDispatcher.getPriorityDispatchInstance())).
  71.       waitForService();
  72.  
  73. All for the lack of a horseshoe nail.
Add Comment
Please, Sign In to add comment