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

Allowed Characters in a Cache Name #350

Closed
cruftex opened this issue May 17, 2016 · 0 comments
Closed

Allowed Characters in a Cache Name #350

cruftex opened this issue May 17, 2016 · 0 comments
Assignees

Comments

@cruftex
Copy link
Member

cruftex commented May 17, 2016

CacheManager.createCache should have information about characters in the cache name.

The Spec says on page 113:

11.2.1. Cache Name
If no cache name is specified either on the method level annotation or at the class level with the
@CacheDefaults annotation then the name is generated as the following:
package.name.ClassName.methodName(package.ParameterType,package.ParameterType)

This means a cache implementation must allow at least the special characters for a cache name: .(),
This is in the annotations sections. Legal/illegal characters in the cache name are not mentioned anywhere else.

On Spec page 132:

Caches do not use forward slashes (/) or colons (:) as part of their names. Additionally it is
recommended that cache names starting with java. or javax.should not be used.

It in the section 'Portability Recommendations', so not mandatoriy.

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

No branches or pull requests

1 participant