Berin,
In looking at this further, can the following line be put at the bottom of ContextManager.initializeServiceManager():
m_childContext.put( SERVICE_MANAGER, manager );
If not, can ContextManager have "final" taken out so I can extend it and do the same in my extended class?
Ask and ye shall receive. This was a very minor thing to do (on both counts). I have both made ContextManager not final, and added that line to initializeServiceManager.
Thanks, Shash
Shash Chatterjee wrote:
Berin and others,
Used to be that life-cycle extentions got introduced to Fortress in the container's initialize() method. Now, I've found, the LifeCycleExtensionManager is provided in the container-manager context.
The problem is that the create(...) method of my extension needs a ServiceManager. In the old way, by the time Container.initialize() was called, the service amanger had been setup/configured already, and all we had to do was:
if (creator instanceof Serviceable) {
creator.service(m_serviceManager);
}
This is no longer possible. I'm thinking that the ContainerManagerConstants.SERVCIE_MANAGER somehow needs to be copied from the container-manager context into the container context. For that, I have to likely extend ContextManager.initializeServiceManager() or DefaultContainerManager.createContainer(). Those do not look too easy to extend, I'd have to duplicate most of the code.
Any ideas/suggestions on how best to provide the extension with a ServiceManager?
Thanks, Shash
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- "You know the world is going crazy when the best rapper is a white guy, the best golfer is a black guy, The Swiss hold the America's Cup, France is accusing the US of arrogance, and Germany doesn't want to go to war. And the 3 most powerful men in America are named 'Bush', 'Dick', and 'Colon' (sic)".
-----Chris Rock
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
