Package org.jboss.invocation.proxy
Class DefaultMethodBodyCreator
- java.lang.Object
-
- org.jboss.invocation.proxy.DefaultMethodBodyCreator
-
- All Implemented Interfaces:
MethodBodyCreator
public class DefaultMethodBodyCreator extends Object implements MethodBodyCreator
AMethodBodyCreatorthat simply returns 0 or null depending on the methods return type- Author:
- Stuart Douglas
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultMethodBodyCreatorINSTANCEThe singleton instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidoverrideMethod(org.jboss.classfilewriter.ClassMethod method, Method superclassMethod)Generate an overridden method.
-
-
-
Field Detail
-
INSTANCE
public static final DefaultMethodBodyCreator INSTANCE
The singleton instance.
-
-
Method Detail
-
overrideMethod
public void overrideMethod(org.jboss.classfilewriter.ClassMethod method, Method superclassMethod)Generate an overridden method.- Specified by:
overrideMethodin interfaceMethodBodyCreator- Parameters:
method- the method to populatesuperclassMethod- the method to override
-
-