2009/1/23 Anthony MULLER <[email protected]>

> Hello,
>
> I'ld like to write my bindings in XML following "standard"...
>
> I read about OSGI RFC 124 because I have simple bindings of my object model
> and bindings for my services...
>
> What do you think about this? RFC124 is Spring-oriented... :-/
>
> <?xml version="1.0" encoding="UTF-8"?>
> <components>
>     <component id="com.sap.i051610.mybundle.model.IMyObject"
> class="com.sap.i051610.mybundle.model.impl.MyObjectImpl" scope="prototype"
> />
> </components>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <components>
>     <service interface="com.sap.i051610.mybundle.services.IMyService">
>         <component
> class="com.sap.i051610.mybundle.services.impl.MyServiceImpl"
> scope="singleton" />
>     </service>
> </components>
>
> Advantages will be that the bindings will be readeable by me (using Guice)
> and a standard-osgi framework too...
>

FYI, Bob has in the past mentioned about using a custom module
to suck in XML and turn it into bindings at runtime - the benefit is
that this doesn't require any change to Guice itself, you just have
to write a module to do this(!)

Anthony
>
> >

-- 
Cheers, Stuart

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to