Roy Golan has posted comments on this change.

Change subject: WIP: working CDI solution for backend
......................................................................


Patch Set 4:

@Asaf:
"Plugins architecture for external components, with class loading isolation and 
security?" - 
You're probably asking what happens if we throw in a engine deployment a jar 
which have beans which should be added to the object-graph?
weld can have a strict or flat deployment structure, with bi-directional access 
to beans. Fairly managable and will require some code to glue it looks right I 
guess. further read - 
http://docs.jboss.org/weld/reference/1.0.0/en-US/html/ri-spi.html

"Is it going to work without EJB container without much hassle? I'd love to see 
backend independent of EJB as we anyway don't leverage its power anyway (but 
this discussion is for another thread)" -
definitely. run you're application with the weld 
main,"org.jboss.weld.environments.se.StartMain"  and there you go 
http://in.relation.to/Bloggers/WeldInJavaSE

"I'd like to extends the concepts of DI in other levels such as REST API (at 
least on a wiki doc) if/how we'r going to use this on the API level, for 
instance "injection" is maintained manually in few places. (e.g 
AbstractBackendResource#inject(S resource))"
good point. those kind of operation will be deprecated once we have injections 
and this code will be gone.

more over I want to emphesize the built-in support of weld for (which is also 
part of SR299):
-events
-managed-bean life-cycle @PreDeploy @PostDeploy, 
-@ApplicationScoped, @Dependent and @Singleton scopes

--
To view, visit http://gerrit.ovirt.org/5575
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I7f604ff91847b698efe84a09f724ba0492a672c1
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <[email protected]>
Gerrit-Reviewer: Asaf Shakarchi <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Laszlo Hornyak <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to