This content has been marked as final.
Show 6 replies
-
1. Re: Generalizing supply/demand
alesj Oct 30, 2007 3:09 PM (in response to starksm64)Can't we/they simply re-write those mbean to MC beans?
I'm in favor of encouraging people to use MC beans where ever possible, even if that means rewriting some code.
Demand already is a simple DependencyItem.
And I just extended it with some 'matching' notion. -
2. Re: Generalizing supply/demand
starksm64 Oct 30, 2007 3:17 PM (in response to starksm64)"alesj" wrote:
Can't we/they simply re-write those mbean to MC beans?
No.'ales' wrote:
Demand already is a simple DependencyItem.
And I just extended it with some 'matching' notion.
I don't see how an mbean can satisfy the demand of an mc bean with the current spi because the matching of demand to supply does not use the mc bean independent apis. -
3. Re: Generalizing supply/demand
alesj Oct 30, 2007 7:38 PM (in response to starksm64)"scott.stark@jboss.org" wrote:
"alesj" wrote:
Can't we/they simply re-write those mbean to MC beans?
No.
Uf. :-)
btw: why not?"scott.stark@jboss.org" wrote:
'ales' wrote:
Demand already is a simple DependencyItem.
And I just extended it with some 'matching' notion.
I don't see how an mbean can satisfy the demand of an mc bean with the current spi because the matching of demand to supply does not use the mc bean independent apis.
It can't. :-)
It can only demand whatever with legacy 'demand' element.
I have no objections with moving demand/supply notion to our dependency module. Although this bloats simple 'state machine' impl in dependency. -
4. Re: Generalizing supply/demand
starksm64 Oct 30, 2007 7:54 PM (in response to starksm64)"alesj" wrote:
Uf. :-)
btw: why not?
Because its unnecessary busy work. What's the point of a multi-container kernel if you don't use multiple container types?'ales' wrote:
It can't. :-)
It can only demand whatever with legacy 'demand' element.
I have no objections with moving demand/supply notion to our dependency module. Although this bloats simple 'state machine' impl in dependency.
If supply/demand are to be mc bean specific it simply cannot be used as a cross-container mechanism. It seems like this can be replaced with a dependency on an alias, in which case, that is how the mc supply/demand should be implemented. -
5. Re: Generalizing supply/demand
alesj Oct 30, 2007 8:01 PM (in response to starksm64)"scott.stark@jboss.org" wrote:
Because its unnecessary busy work. What's the point of a multi-container kernel if you don't use multiple container types?
That's why I was asking if there is a tool to do this for you. :-)
Not all container shoes fit all container feet. ;-)
You don't want to push all features to all impls/legacy."scott.stark@jboss.org" wrote:
If supply/demand are to be mc bean specific it simply cannot be used as a cross-container mechanism. It seems like this can be replaced with a dependency on an alias, in which case, that is how the mc supply/demand should be implemented.
Yes, this is a legit/current workaround.
You can add an alias to mbean, which will work as a supply for any MC bean. -
6. Re: Generalizing supply/demand
adrian.brock Nov 5, 2007 8:49 AM (in response to starksm64)"scott.stark@jboss.org" wrote:
It can only demand whatever with legacy 'demand' element.
I have no objections with moving demand/supply notion to our dependency module. Although this bloats simple 'state machine' impl in dependency.
If supply/demand are to be mc bean specific it simply cannot be used as a cross-container mechanism. It seems like this can be replaced with a dependency on an alias, in which case, that is how the mc supply/demand should be implemented.
There already is an abitrary alias mechanism in the ControllerContext.
The Demand/Supply mechanism predates this and is probably obsolete
now with the full alias dependency mechanism that Ales did a couple of months ago.
i.e. you can change supply -> alias and demand -> depends
On the cross controller issue, that's just an implementation detail.
It's only implemented in the KernelController because I'm lazy
I didn't want to create another object in the kernel bootstrap e.g. SupplyRegistry
to hold the registrations.
It has nothing to do with the controller, it is just a registry that is integrated
into the dependency mechanism by being a KernelRegistryPlugin.
i.e. The KernelController just happens to implement KernelRegistryPlugin
so it can say when Supplies are there.