Uploaded image for project: 'Solder'
  1. Solder
  2. SOLDER-48

Provide injectable system properties

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.1.0.Beta5
    • Component/s: Core
    • Labels:
      None

      Description

      To compliment the generic java.util.Properties resource loader, Solder should allow the system properties (System.getProperties()) to be injected.

      Introduce @System for this purpose (to complement @Client):

      @Inject @System Properties properties;

      Consider naming the system properties so they can be referenced from EL.

      @Named("sysProp")

      It could then be used as:

      #

      {sysProp['os.name']}

      A singular name is being suggested to be consistent with other implicit EL variables, such as initParam, param and header.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            gastaldi George Gastaldi added a comment -
            Show
            gastaldi George Gastaldi added a comment - Merged pull request https://github.com/seam/solder/pull/46
            Hide
            ssachtleben Sebastian Sachtleben added a comment -

            Someone should write about that feature in the documentation.

            Show
            ssachtleben Sebastian Sachtleben added a comment - Someone should write about that feature in the documentation.
            Hide
            lightguard Jason Porter added a comment -

            I'm going to mark this as closed, Please create a new JIRA for tracking the documentation for this.

            Show
            lightguard Jason Porter added a comment - I'm going to mark this as closed, Please create a new JIRA for tracking the documentation for this.
            Hide
            maschmid Marek Schmidt added a comment -

            Created SOLDER-300 to track the documentation issue.

            Show
            maschmid Marek Schmidt added a comment - Created SOLDER-300 to track the documentation issue.

              People

              • Assignee:
                Unassigned
                Reporter:
                dan.j.allen Dan Allen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development