public class Beans extends java.lang.Object implements MethodInterceptor
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.Class[] |
C |
(package private) static java.lang.Object[] |
emptyArgs |
private java.beans.PropertyChangeSupport |
propertySupport |
Constructor and Description |
---|
Beans() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
java.lang.Object |
intercept(java.lang.Object obj,
java.lang.reflect.Method method,
java.lang.Object[] args,
MethodProxy proxy)
All generated proxied methods call this method instead of the original method.
|
static void |
main(java.lang.String[] args) |
static java.lang.Object |
newInstance(java.lang.Class clazz) |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
private java.beans.PropertyChangeSupport propertySupport
static final java.lang.Class[] C
static final java.lang.Object[] emptyArgs
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public static java.lang.Object newInstance(java.lang.Class clazz)
public java.lang.Object intercept(java.lang.Object obj, java.lang.reflect.Method method, java.lang.Object[] args, MethodProxy proxy) throws java.lang.Throwable
MethodInterceptor
intercept
in interface MethodInterceptor
obj
- "this", the enhanced objectmethod
- intercepted Methodargs
- argument array; primitive types are wrappedproxy
- used to invoke super (non-intercepted method); may be called
as many times as neededjava.lang.Throwable
- any exception may be thrown; if so, super method will not be invokedMethodProxy
public static void main(java.lang.String[] args)