Skip to content

Conversation

@jitendra-nalwaya
Copy link

Clarify javadoc for getCacheManager() methods in EhcacheCachingProvider.

Copy link
Member

@chrisdennis chrisdennis left a 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());
}

/**
Copy link
Member

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}.
Copy link
Member

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}
 */

@chrisdennis
Copy link
Member

@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.

@jhouserizer jhouserizer merged commit 0d41cc1 into ehcache:master Dec 7, 2022
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.

3 participants