felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-646) Reconfiguration of factory components is not possible
Date Fri, 25 Jul 2008 12:05:31 GMT
Reconfiguration of factory components is not possible

                 Key: FELIX-646
                 URL: https://issues.apache.org/jira/browse/FELIX-646
             Project: Felix
          Issue Type: Bug
          Components: Declarative Services (SCR)
    Affects Versions: scr-1.0.2
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger
             Fix For: scr-1.0.4

Instances of factory components may be created by calling the ComponentFactory.newInstance()
method or by creating configuration objects whose factoryPID is set to the factory name of
the ComponentFactory. When calling the ComponentFactory.newInstance() method, a Dictionary
object may be given containing configuration data for the new instance. This configuration
data overwrites and configuration admin provided or default configuration (from the descriptor).

Currently when creating a component instance by creating a configuration object, the component
is created with its factory configuration set as if the newInstance() method is called. Changing
the original configuration supplies the new configuration to the component instance. But because
the initial configuration is treated as the factory configuration, the initial configuration
can never be replaced.

To fix this, component instances created as per configuration objects should not be created
with the initial configuration as its factory configuration.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message