public class ImmutablePicoContainerProxyFactory
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.reflect.Method |
disposeMethod |
protected static java.lang.reflect.Method |
equalsMethod |
private static java.lang.Class[] |
interfaces |
private PicoContainer |
pico |
protected static java.lang.reflect.Method |
startMethod |
protected static java.lang.reflect.Method |
stopMethod |
| Modifier | Constructor and Description |
|---|---|
protected |
ImmutablePicoContainerProxyFactory(PicoContainer pico)
Construct a ImmutablePicoContainerProxyFactory.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
static PicoContainer |
newProxyInstance(PicoContainer pico)
Create a new immutable PicoContainer proxy.
|
private static final java.lang.Class[] interfaces
protected static java.lang.reflect.Method startMethod
protected static java.lang.reflect.Method stopMethod
protected static java.lang.reflect.Method disposeMethod
protected static java.lang.reflect.Method equalsMethod
private final PicoContainer pico
protected ImmutablePicoContainerProxyFactory(PicoContainer pico)
pico - the container to hidejava.lang.NullPointerException - if pico is nullpublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic static PicoContainer newProxyInstance(PicoContainer pico)
PicoContainer and will also prevent the invocation of any methods of the lifecycle methods from
Startable or Disposable.pico - java.lang.NullPointerException - if pico is null