-
Notifications
You must be signed in to change notification settings - Fork 55
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
Parties that decorate FaceletCacheFactory must use reflection: not good #1346
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented
|
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented The existing contract for creating the FaceletCache is the following: FaceletCacheFactory cacheFactory = (FaceletCacheFactory) followed by a reflective invocation of the setMemberFactories() on the cache. This is wrong in two ways. 1. It requires reflection 2. It is impossible to decorate the cache so that the setMemberFactories I propose modify the contract to remove the need for the reflective call. The following steps must be taken.
protected void setMemberFactories()
public void FaceletCache.setMemberFactoriesPublic(). With a default implementation that calls setMemberFactories(). This |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
Consider this simple case.
and this one
This is the natural way to use this API, but yet it wall cause a NullPointerException
Affected Versions
[2.1, 2.2]
The text was updated successfully, but these errors were encountered: