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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • ipojo-manipulator-1.8.6
    • ipojo-manipulator-1.10.0
    • iPOJO
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: