Hi Harald! WebBeansContext.currentInstance() is an INTERNAL method - I really suggest to use NONE of them in a customer project.
cdictrl shields all this away from your customer project! LieGrue, strub ----- Original Message ----- > From: Harald Wellmann <[email protected]> > To: [email protected] > Cc: > Sent: Friday, June 22, 2012 8:02 PM > Subject: Re: Booting in Java SE? > > Am 22.06.2012 19:51, schrieb Romain Manni-Bucau: >> Getunstance is replaced by currentinstance, just a semantic change. >> > > Ok. so I'll use WebBeansContext.currentInstance(). You might want to add a > reference to the getInstance() Javadoc, though. Users tend to get confused > when > you deprecate a method and don't tell them what to use instead ;-) > > > >> There is no standard api that's why it is in test module but it is >> comparable to weldse. Deltaspike is the proof. If you want sthg standard >> there is the EJBContainer and openejb for instance. > > Yes, but there are no EJBs in Java SE... > > Best regards, > Harald >
