Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-92

Support addition of Classes using a FQN/ClassLoader

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0-alpha-3
    • None
    • api, impl-base
    • None

      The following syntax:

      archive.addClass(MyClass.class);

      ...requires that the running CL has "MyClass" visible to it. This may not always be the case. Take for instance a test of EJB3 beans; the test class may not be able to load the EJB3 Bean Implementation class, as this may leak other internals out. The test only needs the interface in able to test it, though it'd still like to package up the impl class.

      Support:

      archive.addClass(String fqn, ClassLoader cl)

      ...where the archive implementation may then use the specified CL to load the class of the specified name

              arubinge@redhat.com Andrew Rubinger (Inactive)
              arubinge@redhat.com Andrew Rubinger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: