David Bernard wrote:
Hi Stephen,
May I'm stupid, but I don't find how to access to sub-component of a
container. Could you provide some examples.
You can do some stuff within a component declared as a container by getting the context classloader - however - this is very likely to change in favour of some sort of declared appliance listener. Can you give me some more information on what you want to do?
Is it possible to find component with its path (partitionName)?
Yes, providing you have access to a parent appliance.
Thanks.
PS : In EngineClassLoader.createAppliance(ApplianceContext, boolean) appliance = factory.createAppliance(...) In DefaultApplianceFactory.createAppliance(...) for custom appliance appliance = engine.createAppliance(...) is it normal ?
If CustomAppliance is define, no lifecycle method is called.
Because a custom appliance is a component and is deployed by another appliance.
(its kind of incestuous).
Why don't use in DefaultApplianceFactory.createAppliance(...), ContainerUtil ?
No reason.
Why don't share boostrap code of Appliance between custom and default ?
Because the bootstrap cycle is known for DefaultAppliance wheras a custom appliance can have its own depedencies - could have extensdions, could even have its own deployment lifecycle. That's why we use an appliance to deploy a custom appliance.
Steve.
--
Stephen J. McConnell mailto:[EMAIL PROTECTED] http://www.osm.net
Sent via James running under Merlin as an NT service. http://avalon.apache.org/sandbox/merlin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
