Results 1 to 5 of 5

Thread: Doubt about late binding

  1. #1

    Default Doubt about late binding

    Is it possible to make bindings into a Map? Only into property??:

    Code:
    <bean id="Paso1TransformarXml" class="es.bde.arq.ias.batch.tasklet.impl.TransformarXmlTasklet">
          <property name="xmlTransformationParameters">
                <map>
                      <entry key="prop" value="#{jobExecutionContext[propId]}" />
                </map>
          </property>
    </bean>

  2. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    Your tasklet is not step scoped. Is that the problem?

  3. #3

    Default

    Sorry I forgot to copy the scope attribute to the example, but not, that's not the problem. If I set scope attribute to "step", I get a propertyValue equals to "#{jobExecutionContext[...]}" (String value) for the entry in the example...

  4. #4
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    What type is the value? The way things are right now you have to have a PropertyEditor registered for that type to get the value bound. Use CustomEditorConfigurer (see Spring Framework user guide / javadocs for details).

  5. #5

    Default

    ok, it i not a basic type, it is a special bean type from my architecure classes.
    Thanks a lot!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •