it.imolinfo.jbi4ejb.webservice.generator.bcm
Class RemoteInterfaceExceptionAdapter

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

public class RemoteInterfaceExceptionAdapter
extends org.objectweb.asm.ClassAdapter

Adds the correct managed exception to the remote interface.

Author:
Marco Piraccini

Field Summary
 
Fields inherited from class org.objectweb.asm.ClassAdapter
cv
 
Constructor Summary
RemoteInterfaceExceptionAdapter(org.objectweb.asm.ClassVisitor arg0, java.lang.ClassLoader classLoader)
          Constructor.
 
Method Summary
 java.util.List<java.lang.String> getExceptionsAdded()
          Gets the exceptions added to the interface.
 org.objectweb.asm.MethodVisitor visitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)
          Look for the Exception wrapped by the org.codehaus.xfire.fault.FaultInfoException classes generated by WSDL.
 
Methods inherited from class org.objectweb.asm.ClassAdapter
visit, 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
 

Constructor Detail

RemoteInterfaceExceptionAdapter

public RemoteInterfaceExceptionAdapter(org.objectweb.asm.ClassVisitor arg0,
                                       java.lang.ClassLoader classLoader)
Constructor.

Parameters:
arg0 - The ClassVisitor
classLoader - The classLoader
Method Detail

visitMethod

public org.objectweb.asm.MethodVisitor visitMethod(int access,
                                                   java.lang.String name,
                                                   java.lang.String desc,
                                                   java.lang.String signature,
                                                   java.lang.String[] exceptions)
Look for the Exception wrapped by the org.codehaus.xfire.fault.FaultInfoException classes generated by WSDL.

Specified by:
visitMethod in interface org.objectweb.asm.ClassVisitor
Overrides:
visitMethod in class org.objectweb.asm.ClassAdapter
Parameters:
access - The access modifier
name - The method name
desc - The description
signature - The method signature
exceptions - The throwed exceptions
Returns:
The MethodVisitor
See Also:
ClassAdapter.visitMethod(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String[])

getExceptionsAdded

public java.util.List<java.lang.String> getExceptionsAdded()
Gets the exceptions added to the interface.

Returns:
the exceptions added


Copyright © 2007-2008 Imola Informatica. All Rights Reserved.