Class IIOPStubCompiler


  • public class IIOPStubCompiler
    extends Object
    Utility class responsible for the dynamic generation of bytecodes of IIOP stub classes.
    Author:
    Stuart Douglas, Francisco Reverbel, Richard Opalka
    • Constructor Detail

      • IIOPStubCompiler

        public IIOPStubCompiler()
    • Method Detail

      • compile

        public static org.jboss.classfilewriter.ClassFile compile​(Class<?> intf,
                                                                  String stubClassName)
        Generates the bytecodes of a stub class for a given interface.
        Parameters:
        intf - RMI/IIOP interface to be implemented by the stub class
        stubClassName - the name of the stub class
        Returns:
        a byte array with the generated bytecodes;
      • compileToClass

        public Class<?> compileToClass​(Class<?> intf,
                                       String stubClassName)