[
https://issues.apache.org/jira/browse/DIRECTMEMORY-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13216852#comment-13216852
]
Simone Tripodi commented on DIRECTMEMORY-75:
--------------------------------------------
the builder can be extended/used to read the configuration file you just
exposes, I have a quick reply for your need: using the Digester :P
That's because it already supports a mechanism to interpolate properties (they
can be bound from java system properties and environment variables)
Anyway, I would implement it in a dedicated module, not in the core APIs, to
maintain the required dependencies as lesser as possible.
If you have already a format in mind, please fill an issue describing the
requirements and I can quickly provide you the working impl.
Just a suggestion for the server - you can still get configuration parameters
from the servlet parameters... :P
{code}
<web-app>
<servlet>
<servlet-name>DirectMemoryServlet</servlet-name>
<servlet-class>org.apache.directmemory.server.services.DirectMemoryServlet</servlet-class>
<init-param>
<param-name>buffers</param-name>
<param-value>1000</param-value>
</init-param>
<init-param>
<param-name>serializer</param-name>
<param-value>org.apache.directmemory.serialization.msgpack.MessagePackSerializer</param-value>
</init-param>
...
</servlet>
...
</web-app>
{code}
> 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