You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Jakob Braeuchi <jb...@gmx.ch> on 2005/04/07 22:08:48 UTC

accessing OJB instance

hi tom,

i'm currently refactoring the QueryFactory stuff. so far i have a new 
interface QueryFactoryNew (sorry for the name) and it's implementation.

the queryFactory is created in OJB#initDynamicSystem :

queryFactory = (QueryFactoryNew) 
container.getSingletonInstance(QueryFactoryNew.class);

in the testcases and the old QueryFactory i access OJB via 
PersistenceBrokerFactory.getOjb() but i'm not sure if this is correct ?

how do i ie. get OJB from BrokerHelper ? can i use the subcontainer from 
PBImpl and get a singleton of QueryFactoryNew from there ?

jakob


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org