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

ISPN-3316 Avoid use of @Alternative for Infinispan components #2232

Closed
wants to merge 1 commit into from

Conversation

galderz
Copy link
Member

@galderz galderz commented Nov 20, 2013

  • In CDI 1.0, alternative components cannot be injected in libraries used by deployments. In other words, only components used by the app directly can be switched with alternative.
  • An alternative set of Cache*Interceptor classes have been developed for use in managed environments, which indirectly use the InjectedCacheResolver.
  • Indirectly solved an issue where cache managers where being left open in CDI/JCache integration tests. This was the result of JCacheManager trying to stop cache managers for which it didn't control lifecycle.

@@ -0,0 +1,90 @@
/*
Copy link
Member

Choose a reason for hiding this comment

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

the license header was removed from the class. I think the same applied in this case right? If yes, don't forget to remove also in the other new classes

* In CDI 1.0, alternative components cannot be injected in libraries
used by deployments. In other words, only components used by the app
directly can be switched with alternative.
* An alternative set of Cache*Interceptor classes have been developed
for use in managed environments, which indirectly use the
InjectedCacheResolver.
* Indirectly solved an issue where cache managers where being left
open in CDI/JCache integration tests. This was the result of
JCacheManager trying to stop cache managers for which it didn't
control lifecycle.
* Remove license headers from all source files that had them.
@galderz
Copy link
Member Author

galderz commented Nov 27, 2013

Pull request updated

@pruivo
Copy link
Member

pruivo commented Nov 27, 2013

pulling

@pruivo
Copy link
Member

pruivo commented Nov 27, 2013

integrated!
thanks @galderz !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants