Auto discovery embedded cache configurations #29#30
Auto discovery embedded cache configurations #29#30slaskawi merged 1 commit intoinfinispan:masterfrom
Conversation
|
Looks good, I like the idea! Could you please enhance your PR by adding two things:
|
|
Does the remote cache support multiple configurations ? |
|
No no, it supports only 1 configuration. Just look it up and apply if
that's not a problem. Thanks for looking into it!
On Thu, May 25, 2017 at 3:43 PM Luca Burgazzoli ***@***.***> wrote:
Does the remote cache support multiple configurations ?
Or in this case is just to lookup the remote cache configuration and apply
it ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIBvhv-_wESGH4Ups-bpBZG75WbkgpOgks5r9YWPgaJpZM4NmMLM>
.
--
SEBASTIAN ŁASKAWIEC
INFINISPAN DEVELOPER
Red Hat EMEA <https://www.redhat.com/>
<https://red.ht/sig>
|
|
Should the InfinispanRemoteConfigurer be deprecated ? It could be nice to add also an InfinispanRemoteConfigrationCustomizer, like: @FunctionalInterface
public interface InfinispanRemoteConfigrationCustomizer {
void configure(final ConfigurationBuilder builder);
}Then the Configuration bean lookup would happen as last step if none of the current steps succeed and finally the customizers are triggered. Make any sense ? |
ce7a0b4 to
d677446
Compare
|
+1, makes sense. |
| import infinispan.autoconfigure.common.InfinispanProperties; | ||
|
|
||
| public class InfinispanRemoteCacheManagerChecker implements Condition { | ||
| public static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); |
There was a problem hiding this comment.
It seems this logger is not used.
|
|
||
| ### Customization | ||
|
|
||
| You can further customize the cache manager by creating beans of types `InfinispanCacheConfigurer` and/or `InfinispanGlobalConfigurer`. |
There was a problem hiding this comment.
For symmetry reasons, I think we should also create customizers (probably both global and per cache). This way everything will be consistent.
README.adoc
Outdated
| [source,java] | ||
| .Example | ||
| ---- | ||
| @Order(Ordered.HIGHEST_PRECEDENCE) |
d677446 to
e1e62bf
Compare
|
I've pushed a new version with requested changes |
|
Thanks a lot @lburgazzoli! Awesome work! |
No description provided.