public class HotSwappingComponentAdapter
extends org.picocontainer.defaults.DecoratingComponentAdapter
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 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 CachingComponentAdapter
around this one.
Modifier and Type | Class and Description |
---|---|
private static class |
HotSwappingComponentAdapter.ImplementationHidingReference |
Modifier and Type | Field and Description |
---|---|
private com.thoughtworks.proxy.ProxyFactory |
proxyFactory |
Constructor and Description |
---|
HotSwappingComponentAdapter(org.picocontainer.ComponentAdapter delegate) |
HotSwappingComponentAdapter(org.picocontainer.ComponentAdapter delegate,
com.thoughtworks.proxy.ProxyFactory proxyFactory) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getComponentInstance(org.picocontainer.PicoContainer container) |
public HotSwappingComponentAdapter(org.picocontainer.ComponentAdapter delegate, com.thoughtworks.proxy.ProxyFactory proxyFactory)
public HotSwappingComponentAdapter(org.picocontainer.ComponentAdapter delegate)
public java.lang.Object getComponentInstance(org.picocontainer.PicoContainer container)
getComponentInstance
in interface org.picocontainer.ComponentAdapter
getComponentInstance
in class org.picocontainer.defaults.DecoratingComponentAdapter