You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Thomas Calmant (Created) (JIRA)" <ji...@apache.org> on 2011/10/27 15:06:32 UTC

[jira] [Created] (FELIX-3190) iPOJO Factories doesn't give access to the complete Metadata model

iPOJO Factories doesn't give access to the complete Metadata model
------------------------------------------------------------------

                 Key: FELIX-3190
                 URL: https://issues.apache.org/jira/browse/FELIX-3190
             Project: Felix
          Issue Type: Improvement
          Components: iPOJO
            Reporter: Thomas Calmant
            Priority: Minor


Hi,

I'm trying to read the complete description of component type through its Factory, before any instance of this component exists.
It seems that Factory.getDescription() retrieves only a sub-set of this description, whereas the complete one is hidden in a protected "m_componentMetadata" field.

My current workaround consists to read the field using reflection, but it's not a natural way to do it.

Would it be possible to add a method like "Element getComponentMetadata()" in the Factory interface to access to this field, or to a copy of it ?

Thanks,
Thomas

--
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] (FELIX-3190) iPOJO Factories doesn't give access to the complete Metadata model

Posted by "Thomas Calmant (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-3190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13142005#comment-13142005 ] 

Thomas Calmant commented on FELIX-3190:
---------------------------------------

Perfect, thanks
                
> iPOJO Factories doesn't give access to the complete Metadata model
> ------------------------------------------------------------------
>
>                 Key: FELIX-3190
>                 URL: https://issues.apache.org/jira/browse/FELIX-3190
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>            Reporter: Thomas Calmant
>            Assignee: Clement Escoffier
>            Priority: Minor
>             Fix For: ipojo-core-1.8.2
>
>
> Hi,
> I'm trying to read the complete description of component type through its Factory, before any instance of this component exists.
> It seems that Factory.getDescription() retrieves only a sub-set of this description, whereas the complete one is hidden in a protected "m_componentMetadata" field.
> My current workaround consists to read the field using reflection, but it's not a natural way to do it.
> Would it be possible to add a method like "Element getComponentMetadata()" in the Factory interface to access to this field, or to a copy of it ?
> Thanks,
> Thomas

--
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] [Assigned] (FELIX-3190) iPOJO Factories doesn't give access to the complete Metadata model

Posted by "Clement Escoffier (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier reassigned FELIX-3190:
----------------------------------------

    Assignee: Clement Escoffier
    
> iPOJO Factories doesn't give access to the complete Metadata model
> ------------------------------------------------------------------
>
>                 Key: FELIX-3190
>                 URL: https://issues.apache.org/jira/browse/FELIX-3190
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>            Reporter: Thomas Calmant
>            Assignee: Clement Escoffier
>            Priority: Minor
>
> Hi,
> I'm trying to read the complete description of component type through its Factory, before any instance of this component exists.
> It seems that Factory.getDescription() retrieves only a sub-set of this description, whereas the complete one is hidden in a protected "m_componentMetadata" field.
> My current workaround consists to read the field using reflection, but it's not a natural way to do it.
> Would it be possible to add a method like "Element getComponentMetadata()" in the Factory interface to access to this field, or to a copy of it ?
> Thanks,
> Thomas

--
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] [Resolved] (FELIX-3190) iPOJO Factories doesn't give access to the complete Metadata model

Posted by "Clement Escoffier (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier resolved FELIX-3190.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: ipojo-core-1.8.2

Fixed in trunk.

I've added Factory.getComponentMetadata()
                
> iPOJO Factories doesn't give access to the complete Metadata model
> ------------------------------------------------------------------
>
>                 Key: FELIX-3190
>                 URL: https://issues.apache.org/jira/browse/FELIX-3190
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>            Reporter: Thomas Calmant
>            Assignee: Clement Escoffier
>            Priority: Minor
>             Fix For: ipojo-core-1.8.2
>
>
> Hi,
> I'm trying to read the complete description of component type through its Factory, before any instance of this component exists.
> It seems that Factory.getDescription() retrieves only a sub-set of this description, whereas the complete one is hidden in a protected "m_componentMetadata" field.
> My current workaround consists to read the field using reflection, but it's not a natural way to do it.
> Would it be possible to add a method like "Element getComponentMetadata()" in the Factory interface to access to this field, or to a copy of it ?
> Thanks,
> Thomas

--
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