Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1077

Merge symbol values into property values from a bean definition

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.1.0.5
    • 5.2.0
    • tapestry-spring
    • None

    Description

      Springs allows you to externalize property values from a bean definition into a property file. It would be nice if the values of the property placeholders could be read from symbol values. An example:

      <bean id="serviceStrategy" class="${custom.strategy.class}"/>

      public static void contributeApplicationDefaults(MappedConfiguration<String, String> configuration) {
      configuration.add("custom.strategy.class", "com.foo.DefaultStrategy");
      }

      Attachments

        1. applicationContext.xml
          2 kB
          Brian Heston
        2. ContextLoaderListener.txt
          4 kB
          Brian Heston
        3. database.properties
          0.2 kB
          Brian Heston
        4. TapestrySpringFilter broken.txt
          7 kB
          Brian Heston
        5. TapestrySpringFilter working.txt
          2 kB
          Brian Heston
        6. web.xml
          1 kB
          Brian Heston

        Activity

          People

            igor.drobiazko Igor Drobiazko
            igor.drobiazko Igor Drobiazko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: