-
Notifications
You must be signed in to change notification settings - Fork 588
Fix issue-2852 : Improve javadoc for getCacheManager() methods in Ehc… #3090
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
Conversation
…acheCachingProvider
chrisdennis
left a comment
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.
Rather than attempting to migrate your Javadoc to where I think it needs to be with incremental changes I decided it was easier for all parties to provide the Javadoc as I think it should be. Please review, modify to your tastes, and then push the result. Feel free to ask questions if anything is unclear.
| return getCacheManager(new ConfigSupplier(uri, config), new Properties()); | ||
| } | ||
|
|
||
| /** |
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.
/**
* Requests a {@link CacheManager} configured according to the provided
* configuration be made available.
* <p>
* Multiple calls to this method with the same {@link URI} and configured
* {@link Configuration#getClassLoader() config.getClassLoader()}
* must return the same {@code CacheManager} instance,
* except if a previously returned {@code CacheManager} has been closed.
* <p>
* Properties are passed through and can be retrieved via {@link CacheManager#getProperties()}.
*
* @param uri the URI identifying the cache manager
* @param config the configuration for the cache manager
* @param properties the {@code Properties} for the cache manager
*
* @throws CacheException if a cache manager for the specified arguments could not be produced
* @throws NullPointerException if {@code uri} or {@code config} is {@code null}
*/| } | ||
|
|
||
| /** | ||
| * Enables to create a JSR-107 {@link CacheManager} based on the provided Ehcache {@link Configuration}. |
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.
/**
* Requests a {@link CacheManager} configured according to the provided
* configuration be made available.
* <p>
* This method is shorthand for {@code getCacheManager(uri, config, new Properties())}
*
* @param uri the URI identifying the cache manager
* @param config the configuration for the cache manager
*
* @throws CacheException if a cache manager for the specified arguments could not be produced
* @throws NullPointerException if either {@code uri} or {@code config} is {@code null}
*/|
@jhouserizer @AbfrmBlr can one of you guys review this since it's had too much of my hand in it for my review to be independent. |
Clarify javadoc for getCacheManager() methods in EhcacheCachingProvider.