question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a way to set decoration order

See original GitHub issue

The order of decoration depends on the order of insertion. https://armeria.dev/docs/client-decorator#the-order-of-decoration A decorator inserted later has a higher priority for the client-side. In contrast, a routing decorator inserted earlier has a higher priority for the server-side.

If a decorator has an explicit order, it would be useful for designing a complex decorating chain. For example:

Server.builder()
      .decorator(LoggingService.newDecorator(), 1)
      .decorator(EncodingService.newDecorator(), 2)
      ...
      .build()

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
heowccommented, Oct 28, 2020

Can I work on it?

0reactions
ikhooncommented, Jan 11, 2021

Decorators are always executed in the reverse order of the insertion. Some implementations did not flow the rule such as the routing decorator. It also gives confusion to users. Had chat this feature, which sets a decorator with an order, with other maintainers and we reached that this API can cause another confusion. Please file an issue or leave a comment on this thread if an explicit order of decoration is necessary.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Step-by-Step Guide to Set Design - Dramatics Magazine
Below is a brief outline of the steps for a scenic designer to break down a script. First, read the script for enjoyment....
Read more >
The Natural Order of Things: How To Design Your Home, One ...
Anyone who's decorated a home, or even a room, knows that the choices you make early on can influence those further down the...
Read more >
Set Dressing Guide: How Bong Joon-ho's Parasite Creates ...
A set dresser is responsible for the decor and/or furniture which create a believable world for the story. You may find a set...
Read more >
Home Design Tips: How To Arrange Accessories In Your Home
Then, layer your other decorative accessories, remembering to stagger them by size in order to create your visual triangle. •Avoid grouping ...
Read more >
How to Create a Decorating Plan for Your Home - The Spruce
After you decide what elements will work in your room, start researching prices and availability of your items on your board. (Hint: If...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found