[
https://issues.apache.org/jira/browse/FELIX-4826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352252#comment-14352252
]
Raymond Augé commented on FELIX-4826:
-------------------------------------
With this change two possibilities are achieved:
# It's possible to cast OCDs and ADs returned from the MetaTypeService to
{{org.apache.felix.metatype.OptionalAttributesProvider}}. Of course care must
be taken to perform an instanceof check to ensure instances actually implements
the interface.
# It's possible to implement
{{org.apache.felix.metatype.OptionalAttributesProvider}} on custom OCDs and ADs
returned by MetaTypeProvider implementations.
> expose OptionalAttributes as interface on AttributeDefinition and
> ObjectClassDefinition implementations
> -------------------------------------------------------------------------------------------------------
>
> Key: FELIX-4826
> URL: https://issues.apache.org/jira/browse/FELIX-4826
> Project: Felix
> Issue Type: Improvement
> Components: Metatype Service
> Environment: Any
> Reporter: Raymond Augé
> Attachments: FELIX-4826.patch
>
>
> Currently, there isn't a practical way to obtain OptionalAttributes on ADs
> and OCDs.
> However, with the addition of a simple interface it would be possible to both
> access this extra information as well as add extra information
> programmatically when implemented MetaTypeProviders.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)