| This component adapter makes it possible to hide the implementation of a real subject (behind a proxy). If the key of the
component is of type
Class and that class represents an interface, the proxy will only implement the interface
represented by that Class. Otherwise (if the key is something else), the proxy will implement all the interfaces of the
underlying subject. In any case, the proxy will also implement
com.thoughtworks.proxy.toys.hotswap.Swappable , making
it possible to swap out the underlying subject at runtime.
Note that this class doesn't cache instances. If you want caching,
use a
Cached around this one.
author: Paul Hammant |