felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-4636) @PostUnregistration method called instead of @PostRegistration method
Date Tue, 09 Sep 2014 12:56:28 GMT

     [ https://issues.apache.org/jira/browse/FELIX-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Clement Escoffier resolved FELIX-4636.
--------------------------------------
    Resolution: Won't Fix
      Assignee: Clement Escoffier

Already fixed (FELIX-4612)

> @PostUnregistration method called instead of @PostRegistration method
> ---------------------------------------------------------------------
>
>                 Key: FELIX-4636
>                 URL: https://issues.apache.org/jira/browse/FELIX-4636
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: ipojo-runtime-1.12.0
>            Reporter: fritz proebstle
>            Assignee: Clement Escoffier
>
> 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");
>   }
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message