Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-399

Incorporate Solder's ResourceLoader features into DeltaSpike

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.4
    • 0.6
    • Core
    • None

    Description

      Seam 3's Solder module had some nice resource loading functionality within the org.jboss.solder.resourceLoader packages. With it you could do the following:

      // Load a properties file
      @Inject @Resource("app.properties")
      private Properties appProperties;

      or:

      @Inject
      private ResourceProvider resourceProvider

      public Properties getHostProperties() {
      String hostname = java.net.InetAddress.getLocalHost().getHostName();
      return resourceProvider.loadPropertiesBundle(hostname + ".properties");
      }

      Attachments

        1. DELTASPIKE-399.patch
          32 kB
          Gerhard Petracek

        Activity

          People

            johndament John D. Ament
            as6o Aaron Siri
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: