You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by "Richard S. Hall" <he...@ungoverned.org> on 2009/06/10 21:54:55 UTC

Re: Old example?

FYI, I have committed versions of the examples that work with the 1.8.0 
framework release...

-> richard

On 5/26/09 3:47 AM, Matej Pončák wrote:
> I tried to create GUI application with Felix. i downloaded example from
> http://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Application+Demonstration
>
> It runs very well and its exactly what I need.
>
> But I tried to create my own application with actual version of Felix. I
> found out that there are some changes .
> For example constructor doesnt have 2 arguments but only 1
>
> here Is old example  from org.apache.felix.example.servicebased.host
>
> <codeexample>
>   // Create list to hold custom framework activators.
>          List list = new ArrayList();
>          // Add activator to process auto-start/install properties.
>          list.add(new AutoActivator(configMap));
>          // Add our own activator.
>          list.add(new Activator());
>
>          try
>          {
>              // Now create an instance of the framework.
>              Felix felix = new Felix(configMap, list);
>              felix.start();
>          }
>          catch (Exception ex)
>          {
>              System.err.println("Could not create framework: " + ex);
>              ex.printStackTrace();
>              System.exit(-1);
>          }
> </codeexample>
>
>
> In actual version of Felix is only
>
> <codeexamplefromsource>
> public Felix(Map configMap)
>      {
> </codeexamplefromsource>
>
> So what is necessary to change in example code
> org.apache.felix.example.servicebased.host ?
>
> Thanks
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>    

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org