[
http://issues.ops4j.org/browse/QI-276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13875#action_13875
]
Niclas Hedhman commented on QI-276:
-----------------------------------
There must be third-party implementations for these kinds of problems, which we
should probably use since some other people have thought long and hard on it.
> FileConfigurationService
> ------------------------
>
> Key: QI-276
> URL: http://issues.ops4j.org/browse/QI-276
> Project: Qi4j
> Issue Type: New Feature
> Components: SPI
> Reporter: Niclas Hedhman
> Assignee: Niclas Hedhman
> Fix For: 1.4
>
>
> Service that determines where to put files in a filesystem, based on platform
> defaults. With this service it becomes much easier to know where application
> data, configuration and logs should be placed.
> The list of directories needed for this;
> user.home --> Home Directory of the user, provided by the JVM.
> user.dir --> Current Working Directory, provided by the JVM. However,
> applications can change this and it is problematic to rely on it for "Startup
> Directory".
> Startup Directory --> The current working directory when Energy4Java() was
> instantiated.
> Application Home Directory --> The 'home' of the outer application. This
> needs to be provided by the starter.
> Logging Directory --> Where should logs be placed. Is this dev/prod
> dependent? app.home/logs for dev and /var/log/app.name for production?
> Temporary Directory --> Where should temporary files be created. Perhaps
> combine this with methods for creating temporary files and directories.
> Instance Directory --> If many instances of the same application is running
> on the same file system, each instance may want its own non-shared directory.
> Qi4j Home Directory --> A directory where Qi4j shared resources may be placed.
> Qi4j URLs --> The URLs of the Qi4j API, SPI, Bootstrap and Runtime jars in
> the classpath.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev