The current JUnit tests (iTest and vTest) make use of the non-standard
SCADomain.getService API to get a handle to an SCA service.  Are there
any plans to provide an API to get a ComponentContext as outlined by
the SCA Java Annotations and APIs specification?  I would like to
stick to  stick to specified APIs  as much as possible in vTest.


1.4.2.1. ComponentContext
Non-SCA client code can use the ComponentContext API to perform
operations against a component in an
SCA domain. How client code obtains a reference to a ComponentContext
is runtime specific. The following
example demonstrates the use of the component Context API by non-SCA code:

    ComponentContext context = // obtained through host
environment-specific means

    HelloService helloService =
context.getService(HelloService.class,"HelloService");


Thanks.
--
Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to