felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fritz proebstle (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-4636) @PostUnregistration method called instead of @PostRegistration method
Date Tue, 09 Sep 2014 11:22:30 GMT
fritz proebstle created FELIX-4636:
--------------------------------------

             Summary: @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


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