Provide a way to set decoration order
See original GitHub issueThe 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:
- Created 3 years ago
- Reactions:1
- Comments:8 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Can I work on it?
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.