Invocation API 1.1.0.Final

org.jboss.invocation.proxy
Class DefaultMethodBodyCreator

java.lang.Object
  extended by org.jboss.invocation.proxy.DefaultMethodBodyCreator
All Implemented Interfaces:
MethodBodyCreator

public class DefaultMethodBodyCreator
extends Object
implements MethodBodyCreator

A MethodBodyCreator that simply returns 0 or null depending on the methods return type

Author:
Stuart Douglas

Field Summary
static DefaultMethodBodyCreator INSTANCE
          The singleton instance.
 
Method Summary
 void overrideMethod(org.jboss.classfilewriter.ClassMethod method, Method superclassMethod)
          Generate an overridden method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
overrideMethod in interface MethodBodyCreator
Parameters:
method - the method to populate
superclassMethod - the method to override

Invocation API 1.1.0.Final

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.