Niclas Hedhman wrote:

On Monday 01 March 2004 10:27, Cameron Fieber wrote:

I believe I have a reference to the containment model, I'll see what I
can find in there.


I scratched my head for quite a while on this one.
I can't find a way to get to the managedComponet OR the Appliance from the componentModel. Stephen is indicating that it may have been refactored away.


The RuntimeFactory's getRuntime() method can give what you need, but I can't see any way to reach that either....

A component with a reference to the model (a.k.a facility) can locate other component models by address or by service classname. This is handled by the respective getModel( .. ) operations under ContainmentModel. Once a particular model has been located (component or containment model) the service is accessible using model.resolve().


If resolve is invoked on a ComponentModel, the object return to the client is a proxy wrapping the component implementation instance (unless proxy handling for the component has been disabled). If resolve is invoked on a ContainmentModel the object is a proxy that redirects invocations to a component running inside the container.

Stephen.

Cheers
Niclas


--

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/merlin/distributions/latest    |
|------------------------------------------------|

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



Reply via email to