felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-4507) [DS] "persistent" factory components
Date Wed, 06 Aug 2014 02:04:13 GMT

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

David Jencks resolved FELIX-4507.
---------------------------------

    Resolution: Fixed

> [DS] "persistent" factory components
> ------------------------------------
>
>                 Key: FELIX-4507
>                 URL: https://issues.apache.org/jira/browse/FELIX-4507
>             Project: Felix
>          Issue Type: New Feature
>          Components: Declarative Services (SCR)
>    Affects Versions: scr-1.8.0
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: scr-2.0.0
>
>
> The lifecycle constraints of factory components make them generally useless.  This introduces
a different kind of factory component where:
> - the componentFactory service is always registered irrespective of whether any references
are available
> - the components created by newInstance act like regular components created by config
admin factory pids; the component is present whether or not references are available and the
instance comes and goes as references come and go.  Calling dispose removes the component.
> - a modify method is added to the ComponentInstance returned from newInstance. (the ComponentInstance
implements a new, extension, interface with the modify method)
> There are some consequences, such as ComponentInstance.getInstance() may return null
and may not always return the same object.
> This behavior can be turned on for a particular component with a "extension" attribute
in the component descriptor
> xmlns:felix="http://felix.apache.org/xmlns/scr/extensions/v1.0.0"
> felix:persistentFactoryComponent="true"



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message