You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Anurag Chandak (JIRA)" <ji...@apache.org> on 2016/06/29 12:52:37 UTC

[jira] [Updated] (OFBIZ-7630) Enforce noninstantiability to ServiceEcaUtil class

     [ https://issues.apache.org/jira/browse/OFBIZ-7630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anurag Chandak updated OFBIZ-7630:
----------------------------------
    Attachment: OFBIZ-7630.patch

Thanks [~rishisolankii] for the detailed description, provided the patch for the same.

> Enforce noninstantiability to ServiceEcaUtil class
> --------------------------------------------------
>
>                 Key: OFBIZ-7630
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7630
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Rishi Solanki
>            Assignee: Anurag Chandak
>            Priority: Minor
>         Attachments: OFBIZ-7630.patch
>
>
> - Make class as final.
> - Add a private constructor.
> - Make the following public static variables as private
> {code}
>     public static Map<String, Map<String, List<ServiceEcaRule>>> ecaCache = new ConcurrentHashMap<String, Map<String, List<ServiceEcaRule>>>();
> {code}
> - Make the following protected static methods as private
> {code}
> protected static Callable<List<ServiceEcaRule>> createEcaLoaderCallable(final ResourceHandler handler)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)