myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <>
Subject [jira] [Resolved] (MYFACES-3815) Lazy instantiation of Renderer classes
Date Wed, 06 Nov 2013 19:48:17 GMT


Leonardo Uribe resolved MYFACES-3815.

       Resolution: Fixed
    Fix Version/s: 2.2.0

> Lazy instantiation of Renderer classes
> --------------------------------------
>                 Key: MYFACES-3815
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: JSR-344
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.2.0
> The initialization algorithm create all Renderer instances at startup time. The side
effect is a lot of classes are loaded into permgen memory without need.
> With a clever trick we can avoid that, providing a custom interfaces LazyRenderKit and
making html basic renderkit implements it. Then, in the init code we check for that interface
and if is present, we use it to register the Renderer in a lazy way, otherwise we use the
standard form. Add the required method to RenderKit looks like a good idea for include it
in the spec.

This message was sent by Atlassian JIRA

View raw message