Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1887

Move class loading under Di, differentiate between Cayenne and application classes

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Per CAY-1882 we need to be able to handle class loading under OSGi, with Cayenne sitting in one bundle, and app code and mapping in another. I think we need to do the following:

      1. Deprecate the use of static Util.getJavaClass method (which uses static DefaultAdhocObjectFactory), and change all its invocations to call DI AdhocObjectFactory.
      2. AdhocObjectFactory must be able to load classes either from Cayenne bundle ClassLoader (I guess classes coming from org.apache.cayenne?) and application class loader (entity classes, XML mapping, various extensions).

      Attachments

        Issue Links

          Activity

            People

              andrus Andrus Adamchik
              andrus Andrus Adamchik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: