forked from gregrluck/microprofile-conference
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Depends on: payara/Payara#1125 and payara/Payara#1124
- Loading branch information
Showing
5 changed files
with
2 additions
and
74 deletions.
There are no files selected for viewing
42 changes: 0 additions & 42 deletions
42
microservice-schedule/src/main/java/io/microprofile/showcase/schedule/cdi/CacheProducer.java
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
microservice-schedule/src/main/java/io/microprofile/showcase/schedule/cdi/ScheduleCache.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit 53a0859
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this ScheduleDAO @CacheDefaults is already being declared at the class level. i.e.
@ApplicationScoped
@CacheDefaults(cacheName = "schedule")
public class ScheduleDAO {
...
}
So this change means that we don't need to keep using the cacheName on individual annotations which is why @CacheDefaults was added to the spec in the first place.
I don't have to use the
@ScheduleCache
qualifier anymore and the producer associated to it.Boilerplate is gone. That's the main benefit here.