avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berin Loritsch" <blorit...@apache.org>
Subject New stuff in "container"
Date Wed, 28 Aug 2002 12:37:48 GMT
Since Container is currently a place for *optional* pieces and tools to
help write your own containers, I added three new classes to help
migrate
legacy systems to the ServiceManager way of doing things.

ComponentProxyGenerator - A dynamic proxy generator (requiring JDK 1.3+)
                          that wraps a service with the Component
interface
                          and only exposes the service interface.

LegacyComponentManager - A wrapper for your ServiceManager that uses the
                         ComponentProxyGenerator to ensure all the
services
                         bound are accessible.

LegacyComponentSelector - A wrapper for your ServiceSelector that uses
the
                          ComponentProxyGenerator to ensure all the
services
                          bound are accessible.

There is a limitation:

In order to have a general purpose wrapper that would work in most cases
where it is needed (i.e. legacy components) you must bind the services
using
the legacy naming conventions (i.e. fully qualified class name of the
work interface and any of the appenders).

If you need anything more specific, use the ComponentProxyGenerator
directly.
As an added bonus of the Legacy compatibility stuff being placed in
Container,
we can use it in other places like Merlin/Fortress/Tweety/etc.


"They that give up essential liberty to obtain a little temporary safety
 deserve neither liberty nor safety."
                - Benjamin Franklin


--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message