You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by "Pepijn Noltes (Created) (JIRA)" <ji...@apache.org> on 2012/01/19 13:25:42 UTC

[jira] [Created] (CELIX-25) Allow NULL value for the SERVICE_TRACKER_CUSTOMIZER struct

Allow NULL value for the SERVICE_TRACKER_CUSTOMIZER struct
----------------------------------------------------------

                 Key: CELIX-25
                 URL: https://issues.apache.org/jira/browse/CELIX-25
             Project: Celix
          Issue Type: New Feature
            Reporter: Pepijn Noltes
            Priority: Minor


The SERVICE_TRACKER_CUSTOMIZER struct contains 4 function pointers fields which will be called when a services is adding, added, removed or modified. Please allow these fields to be NULL for convience.
In most cases your not interested in all function calls. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CELIX-25) Allow NULL value for the SERVICE_TRACKER_CUSTOMIZER struct

Posted by "Alexander Broekhuis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CELIX-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13498033#comment-13498033 ] 

Alexander Broekhuis commented on CELIX-25:
------------------------------------------

Doing this is a slight move away from the OSGi Spec. In Java the customizer is an interface, basically forcing the implementor to implement all methods. Not allowing NULL does the same for Celix, but I do agree it is more convenient if NULL is allowed.
Any more pros/cons on this one?
                
> Allow NULL value for the SERVICE_TRACKER_CUSTOMIZER struct
> ----------------------------------------------------------
>
>                 Key: CELIX-25
>                 URL: https://issues.apache.org/jira/browse/CELIX-25
>             Project: Celix
>          Issue Type: New Feature
>            Reporter: Pepijn Noltes
>            Priority: Minor
>
> The SERVICE_TRACKER_CUSTOMIZER struct contains 4 function pointers fields which will be called when a services is adding, added, removed or modified. Please allow these fields to be NULL for convience.
> In most cases your not interested in all function calls. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira