[ 
https://issues.apache.org/jira/browse/FELIX-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839421#action_12839421
 ] 

Róbert Csákány commented on FELIX-2100:
---------------------------------------

I'm thinking a lot of about this. You are right, if we wanna do config loading 
as a resource with a new resource processor - for example in this case 
ConfigResourceProcessor 

Pros:
 -  There is a general mechanism for processing config files - But there is 
another question how can utilize fileInstall the new mechanism? Because there 
are config files out of Bundle.
 -  Easy to implement new resource type - But what another type of resource can 
be important for Felix? What type of informations can be usable for OSGI from a 
bundle? As I know the Felix only use Configuration data and the Bundle JAR 
itself. (Maybe you can say an example for me)

Conts:
 -  Minimum +2 two bundle, for the same functionality - we don't get clearer 
code or less bottleneck

So to summerize, you are right that the perfect way from an architect aspect is 
that we have to keep away the extender pattern, but in this situation I can't 
tell a good reason why need it. Maybe there is another types of resources thats 
are interesting for Felix, but I don't know them. 
If you can tell me a good example, I will plan and implement it  - this is an 
interesting problem for me and a real life example is usefull to learn :)
Thanks for your opinions, it helps me to understand the possibilities of Felix.



> Initial Config Loader
> ---------------------
>
>                 Key: FELIX-2100
>                 URL: https://issues.apache.org/jira/browse/FELIX-2100
>             Project: Felix
>          Issue Type: New Feature
>          Components: Bundle Repository (OBR), Configuration Admin
>            Reporter: Róbert Csákány
>         Attachments: configloader.zip
>
>
> I've a request to be able to make customer specific configuration bundles - 
> bundles that includes Configurations for other bundles. If a bundle is 
> deployed, extracts the configuration files and register it with configadmin. 
> If bundle is removed, removes configurations. If you have ideas, please share 
> it! (I'm new in this Felix world, I've used it only with Sling as a user)
> I will make a short proporsal and a whiteboard implementation.
> The name of impmelemtation is configloader
> The configloader service will implement the SynchronousBundleListener, and 
> registering itself in activation and unregistering in deactivation.
> When a new bundle is registering, checking the Bundle-InitialConfigurations 
> in META-INF/MANIFEST.MF file. If the entry is presented, checking the given 
> folders for *.xml files describes the configurations entry. (To handle the 
> Factory services also).
> Is it correct?

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

Reply via email to