commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <>
Subject [jira] Updated: (LANG-653) Provide a very basic ConcurrentInitializer implementation
Date Fri, 08 Oct 2010 20:18:32 GMT


Oliver Heger updated LANG-653:

    Attachment: lang-653.patch

Proposed patch. I settled for the name {{ConstantInitializer}}.

> Provide a very basic ConcurrentInitializer implementation
> ---------------------------------------------------------
>                 Key: LANG-653
>                 URL:
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.concurrent.*
>            Reporter: Oliver Heger
>         Attachments: lang-653.patch
> It might be useful - for instance in unit tests - to have a simple implementation of
{{ConcurrentInitializer}} which just returns an object that was passed to the constructor.
The object is stored in a final field, so no synchronization is needed. In contrast to {{LazyInitializer}}
this class could be named {{EagerInitializer}} because the object must already exist.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message