it.imolinfo.jbi4corba.webservice.generator.bcm
Class RemoteEnhancerAdapter

java.lang.Object
  extended by org.objectweb.asm.ClassAdapter
      extended by it.imolinfo.jbi4corba.webservice.generator.bcm.RemoteEnhancerAdapter
All Implemented Interfaces:
org.objectweb.asm.ClassVisitor

public class RemoteEnhancerAdapter
extends org.objectweb.asm.ClassAdapter

Bytecode manipulation. 1) add the java.rmi.Remote interface to the class 2) add the java.rmi.RemoteException to the 'throws' clause of each method.


Field Summary
protected  String portTypeClassName
          The name of the class that represents the PortType.
 
Fields inherited from class org.objectweb.asm.ClassAdapter
cv
 
Constructor Summary
RemoteEnhancerAdapter(org.objectweb.asm.ClassVisitor arg0, String portTypeClassName)
          Constructor.
 
Method Summary
 String getCompleteName()
           
 void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
          Override.
 org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
          Override.
 
Methods inherited from class org.objectweb.asm.ClassAdapter
visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitOuterClass, visitSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portTypeClassName

protected String portTypeClassName
The name of the class that represents the PortType.

Constructor Detail

RemoteEnhancerAdapter

public RemoteEnhancerAdapter(org.objectweb.asm.ClassVisitor arg0,
                             String portTypeClassName)
Constructor.

Parameters:
arg0 - The ClassVisitor
portTypeClassName - The port type class name
Method Detail

visit

public void visit(int version,
                  int access,
                  String name,
                  String signature,
                  String superName,
                  String[] interfaces)
Override.

Specified by:
visit in interface org.objectweb.asm.ClassVisitor
Overrides:
visit in class org.objectweb.asm.ClassAdapter
Parameters:
version - The version
access - The access
name - The name
signature - The signature
superName - The super name
interfaces - The interfaces

visitMethod

public org.objectweb.asm.MethodVisitor visitMethod(int access,
                                                   String name,
                                                   String desc,
                                                   String signature,
                                                   String[] exceptions)
Override.

Specified by:
visitMethod in interface org.objectweb.asm.ClassVisitor
Overrides:
visitMethod in class org.objectweb.asm.ClassAdapter
Parameters:
access - The access
name - The name
desc - The description
signature - The signature
exceptions - The exceptions
Returns:
The return

getCompleteName

public String getCompleteName()
Returns:
the complete name


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.