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.

Support `@Stereotype`

See original GitHub issue

The FT spec doesn’t mention Stereotypes, so there is no test in the TCK and implementations don’t have to support it.

It would be useful to, e.g., define a @Stereotype-annotation @Gateway with the complete default FT handling and use it for all gateway classes.

As a fallback it should at least be explicitly documented as not supported.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Emily-Jiangcommented, Dec 6, 2017

I will defer this one. However, I will add a statement on the spec to say “The stereotype support is optional.”

0reactions
t1commented, Mar 22, 2018

Okay, now I understand. This limitation of the CDI spec regarding stereotypes does restrict its usefulness, even when it never occurred to me before. I guess the main use-case is to define stereotypes on the class level anyway. When I have a bunch of gateway classes to encapsulate the access to remote systems that I want to protect with FT, wouldn’t it be useful to define the default FT behaviour in a @Gateway stereotype annotation? I could change anything at the class or at the method level, but the defaults are there. I could not remove something, e.g. the timeout, but I could change it to any value.

I think this would be very valuable. Don’t you agree?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Addressing Stereotype Threat is Critical to Diversity ... - Frontiers
Empirical evidence has supported the idea that when individuals face stereotype threat, they are less likely to pursue leadership roles, ...
Read more >
How to Beat Stereotypes by Seeing People as Individuals
Why we stereotype. Psychologists call our mental shortcuts “heuristics”—and we need them to help our brains navigate the world.
Read more >
Stereotypes - BetterHelp
The therapists at BetterHelp can help you understand the harm that stereotypes contribute to in your life and how to work to fight...
Read more >
Strategies and Resources About Stereotype Threat
What is a stereotype threat? “A type of social identity threat that occurs when one fears being judged in terms of a group-based...
Read more >
How do we rid ourselves of stereotypes? - Getting Race Right
Contact (deliberately seeking opportunities to get to know people from stereotyped groups). These techniques are designed to help someone break the stereotype ......
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