On Friday, February 14, 2003, at 12:46  AM, Vjeran Marcinko wrote:
Are there some benefits that will be lost because of not using Proxy objects ?
Yes.

1) If you do not implement the Component interface on your components, then your components will not be visible through any legacy Composable components. The proxy will dynamically add the Component interface if it doesn't already exist.

2) Clients will be able to cast the component into its base class. ie:

class MyComponentImpl implements MyComponent

and

myComponent = (MyComponentImpl) manager.lookup( MyComponent.ROLE );


I would encourage the use of the Proxy objects, because if your code works with them in place then you will be in a better position going forward to migrate (if want/needed) to future containers. I do realize that there are some cases where the proxies are not desirable, and thus the ability to disable that feature.
-pete


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



Reply via email to