You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Rashmi Hunt <ra...@gmail.com> on 2007/04/24 23:34:07 UTC
WorkScheduler/WorkContext question
How to get configured workScheduler and workContext from Tuscany runtime, in
any binding implementation?
In previous Tuscany revision code, any binding builder could autowire to get
hold of workScheduler or workContext.
For e.g binding builder could implement code like this
@Autowire
public void setWorkScheduler(WorkScheduler workScheduler) {
this.workScheduler = workScheduler;
}
…and TargetInvoker was able to use workContext to schedule async work for
async invocations.
I am not seeing @Autowire annotation anymore in current Tuscany code. What's
the equivalent SPI/APIs to get
workmanager/workContext in binding implementation?
-Rashmi
Re: WorkScheduler/WorkContext question
Posted by Raymond Feng <en...@gmail.com>.
Hi,
You should be able to look them up as extension points from the
ExtensionPointRegistry which is passed to the ModuleActivator interface when
you contribute an extension module.
For example,
public class MyModuleActivator implements ModuleActivator {
...
public void start(ExtensionPointRegistry registry) {
WorkContext context = registry.getExtensionPoint(WorkContext.class);
...
}
}
Thanks,
Raymond
----- Original Message -----
From: "Rashmi Hunt" <ra...@gmail.com>
To: <tu...@ws.apache.org>
Sent: Tuesday, April 24, 2007 2:34 PM
Subject: WorkScheduler/WorkContext question
How to get configured workScheduler and workContext from Tuscany runtime, in
any binding implementation?
In previous Tuscany revision code, any binding builder could autowire to get
hold of workScheduler or workContext.
For e.g binding builder could implement code like this
@Autowire
public void setWorkScheduler(WorkScheduler workScheduler) {
this.workScheduler = workScheduler;
}
…and TargetInvoker was able to use workContext to schedule async work for
async invocations.
I am not seeing @Autowire annotation anymore in current Tuscany code. What's
the equivalent SPI/APIs to get
workmanager/workContext in binding implementation?
-Rashmi
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org