[ 
https://issues.apache.org/jira/browse/DIRECTMEMORY-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216837#comment-13216837
 ] 

Olivier Lamy commented on DIRECTMEMORY-75:
------------------------------------------

agree on builder pattern.
Perso I'd like we have too a configuration from file mechanism.
Sample (too improve :-) )
<direct-memory>
  <defaultRegion expiresIn="100" etc....>
  <region name="foo" expiresIn="100" etc....>
</direct-memory>
I imagine the builder using a file path and a builder using file path from a 
sys props.
-DdirectMemory.configuration=path....
BTW the -DdirectMemory.configuration must support "interpolation" from sys 
props and env var to be able to do:
-DdirectMemory.configuration=${user.home}/blabla or 
-DdirectMemory.configuration=${CATALINA_BASE}/conf/blabla

 
                
> Create a CacheService builder to simplify the bootstrap process
> ---------------------------------------------------------------
>
>                 Key: DIRECTMEMORY-75
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-75
>             Project: Apache DirectMemory
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 0.6.0
>            Reporter: Simone Tripodi
>            Assignee: Simone Tripodi
>             Fix For: 0.6.0
>
>
> This is kind of simplified yet powerful version of DIRECTMEMORY-62 that I 
> marked as a won't fix.
> Olivier suggested in ML a Configuration/Factory pattern, with the builder we 
> can achieve both. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to