Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4052

Instance declaration not created correctly when using @Instantiate if the @Component specifies a name

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: ipojo-manipulator-1.8.6
    • Fix Version/s: ipojo-manipulator-1.10.0
    • Component/s: iPOJO
    • Labels:
      None

      Description

      The instance declaration is incorrect when a component is using the "name" attribute and an instance is declared using the @Instantiate annotation such as in:

      @Component(name="my-custom-name)
      @Instantiate
      public class MyComponent

      { //... }

      The instance is declared by is looking for a factory with the component's classname (the default) as factory name, and so the declaration is never bound. In this case the instance must look for the factory with the specified name.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                clement.escoffier Clement Escoffier
                Reporter:
                clement.escoffier Clement Escoffier
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: