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

Richard S. Hall closed FELIX-177.
---------------------------------

    Resolution: Fixed

I think this issue can be closed since the contructor for Felix has been 
completely re-engineered as part of the process to have Felix implement the 
Bundle interface.

> Simplify Felix Framework constructor
> ------------------------------------
>
>                 Key: FELIX-177
>                 URL: https://issues.apache.org/jira/browse/FELIX-177
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>            Reporter: Chris Custine
>            Priority: Trivial
>         Attachments: FELIX-177-2.patch, FELIX-177.diff
>
>
> I want to be able to create Felix framework instances and manage their bean 
> dependencies within a Spring context, so modifying the 
> org.apache.felix.framework.Felix object to have a default constructor and 
> simple mutators to inject dependencies will make this much easier.  This will 
> allow a Felix instance to be created in a Spring context as simple as this:
>     <bean id="felix" class="org.apache.felix.framework.Felix" 
> init-method="start" destroy-method="shutdown">
>         <property name="propertyResolver">
>             <ref bean="propertyResolver"/>
>         </property>
>     </bean>
>     <util:constant 
> static-field="org.apache.felix.framework.cache.BundleCache.CACHE_PROFILE_PROP"/>
>     <bean id="propertyResolver" 
> class="org.apache.felix.framework.util.MutablePropertyResolverImpl">
>         <constructor-arg index="0">
>             <map>
>                 <entry 
> key-ref="org.apache.felix.framework.cache.BundleCache.CACHE_PROFILE_PROP" 
> value="osgircp"/>
>             </map>
>         </constructor-arg>
>     </bean>

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