On 2010-02-08 21.04, Paul Merlin wrote:
If the realm is a ServiceComposite for example, the RealmFactory needs to have 
access to a ServiceFinder. What I did for
now is using a static field refering to an Application in my RealmFactory that 
is set by the ServletContextListener who
bootstrap my Application. That feels both innapropriate and is tied to the 
webapp context.

I currently have no other idea but did not dig deeper. Did you come accross 
good ways to handle this kind of integration
?

Inappropriate, yes, but it might be your best best for now. As long as the ugliness is contained reasonably it should be fine. If the RealmFactory has a static, then it's not tied to a webapp, since the dependency is listener->factory and not the other way round. Right?

/Rickard

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to