Package net.sf.cglib.samples
Class Beans
java.lang.Object
net.sf.cglib.samples.Beans
- All Implemented Interfaces:
Callback
,MethodInterceptor
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Class[]
(package private) static final Object[]
private PropertyChangeSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
intercept
(Object obj, Method method, Object[] args, MethodProxy proxy) All generated proxied methods call this method instead of the original method.static void
static Object
newInstance
(Class clazz) void
-
Field Details
-
propertySupport
-
C
-
emptyArgs
-
-
Constructor Details
-
Beans
public Beans()
-
-
Method Details
-
addPropertyChangeListener
-
removePropertyChangeListener
-
newInstance
-
intercept
public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable Description copied from interface:MethodInterceptor
All generated proxied methods call this method instead of the original method. The original method may either be invoked by normal reflection using the Method object, or by using the MethodProxy (faster).- Specified by:
intercept
in interfaceMethodInterceptor
- Parameters:
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 needed- Returns:
- any value compatible with the signature of the proxied method. Method returning void will ignore this value.
- Throws:
Throwable
- any exception may be thrown; if so, super method will not be invoked- See Also:
-
main
-