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

Add 'InstantiatorService' to allow customization of object construction #3187

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrisdennis
Copy link
Member

This is a proposal for an InstantiatorService which would allow users to customize how Ehcache creates instances of user types that support the cache. That means things like event listeners, cache loader/writers, resilience strategies etc. At this point I'm mainly interested in knowing if the interface presented here is suitable for wiring in to the Spring dependency injection system.


import org.ehcache.spi.service.Service;

public interface InstantiatorService extends Service {
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the interface of interest.

@mathieucarbou
Copy link
Member

Tested with the JCache changes in #3190 in the sample at SoftwareAG/terracotta-samples#32.

Happy with it!

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

Successfully merging this pull request may close these issues.

None yet

2 participants