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

@PostUnregistration method called instead of @PostRegistration method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: ipojo-runtime-1.12.0
    • Fix Version/s: None
    • Component/s: iPOJO
    • Labels:
      None

      Description

      After Service Registration the uname method ( annotated with @PostUnregistration ) is called instead of ( name( annotated with @PostRegistration)-
      I'm working with ipojo 1.12.0

      ---- code follows----

      @Component(immediate=true)
      @Provides(strategy = "SINGLETON")
      @Instantiate
      public class TestServiceImpl implements TestService
      {

      public TestServiceImpl()

      { System.out.println( "TestServiceImpl Constructor"); }

      /* (non-Javadoc)

      • @see de.transver.incap.infrastructure.impl.service.TestService#validate()
        */
        @Override
        @Validate
        public void validate() { System.out.println( "Validate"); }

      /* (non-Javadoc)

      • @see de.transver.incap.infrastructure.impl.service.TestService#invalidate()
        */
        @Override
        @Invalidate
        public void invalidate() { System.out.println( "Invalidate"); }

      /* (non-Javadoc)

      • @see de.transver.incap.infrastructure.impl.service.TestService#name(org.osgi.framework.ServiceReference)
        */
        @Override
        @PostRegistration
        public void name(ServiceReference ref) { System.out.println( "PostRegistration"); }

      /* (non-Javadoc)

      • @see de.transver.incap.infrastructure.impl.service.TestService#uname(org.osgi.framework.ServiceReference)
        */
        @Override
        @PostUnregistration
        public void uname(ServiceReference ref) { System.out.println( "PostUnregistration"); }

        }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                clement.escoffier Clement Escoffier
                Reporter:
                fritz.pro@gmx.de fritz proebstle
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: