Camel
  1. Camel
  2. CAMEL-3736

BeanDefinition.beanType should be of type String rather than Class so that the XML can be parsed without necessarily having the full class loader available at XML parse time. does using Class even work?

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.7.0
    • Component/s: camel-core, camel-spring
    • Labels:
      None

      Description

      Its probably safer to make the Class attribute an @XmlTransient and add an @XmlAttribute String type field/attribute which is used to lazily create the beanType Class using the context/current class loader so that JAXB doesn't need to have to worry about class loaders

        Activity

        james strachan created issue -
        Claus Ibsen made changes -
        Field Original Value New Value
        Assignee Claus Ibsen [ davsclaus ]
        Claus Ibsen made changes -
        Affects Version/s 2.6.0 [ 12315690 ]
        Component/s camel-core [ 12313938 ]
        Component/s camel-spring [ 12313939 ]
        Claus Ibsen <davsclaus@apache.org> committed aa1bd3edf5bf95bbd39a162028e24574eb4b821d (3 files)
        Reviews: none

        CAMEL-3736: Attribute beanType changed from Class to String in model. Also using ClassResolver from CamelContext to load the class which works better in OSGi etc.
        git-svn-id: https://svn.apache.org/repos/asf/camel/trunk@1075927 13f79535-47bb-0310-9956-ffa450edef68

        Claus Ibsen committed 1075927 (3 files)
        Reviews: none

        CAMEL-3736: Attribute beanType changed from Class to String in model. Also using ClassResolver from CamelContext to load the class which works better in OSGi etc.

        Claus Ibsen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Daniel Kulp made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            james strachan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development