Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use name from CacheDefaults when injecting JCache (PAYARA-1106) #1126

Conversation

jerrinot
Copy link
Contributor

@jerrinot jerrinot commented Oct 6, 2016

Fixes #1124

Disclaimer: I don't really understand CDI lifecycle. I assume the producer method is called for each injection point.

Example usage (depends also on #1125)

@payara-ci
Copy link
Contributor

Can one of the admins verify this patch?

1 similar comment
@payara-ci
Copy link
Contributor

Can one of the admins verify this patch?

@smillidge
Copy link
Contributor

jenkins test please

1 similar comment
@michaelranaldo
Copy link
Contributor

jenkins test please

@payara-ci
Copy link
Contributor

One or more tests have failed

@smillidge smillidge added the PR: CLA CLA submitted on PR by the contributor label Oct 8, 2016
@smillidge
Copy link
Contributor

jenkins test please

@payara-ci
Copy link
Contributor

All tests have passed

Copy link

@gregrluck gregrluck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the example application we have 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.

@smillidge smillidge changed the title Use name from CacheDefaults when injecting JCache Use name from CacheDefaults when injecting JCache (PAYARA-1106) Oct 11, 2016
@smillidge smillidge merged commit 52c8756 into payara:master Oct 11, 2016
@jerrinot jerrinot deleted the improvements/jcache-producer-use-default-name/master branch October 11, 2016 20:48
@OndroMih OndroMih added this to the Payara 4.1.1.164 milestone Nov 21, 2016
lprimak pushed a commit to flowlogix/Payara that referenced this pull request Jul 5, 2017
Use name from CacheDefaults when injecting JCache (PAYARA-1106)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: CLA CLA submitted on PR by the contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants